use more idiomatic code style

This commit is contained in:
Marco Hinz 2013-04-29 15:06:40 +02:00
parent 7fc07a6cb6
commit 803b0adbbf
3 changed files with 11 additions and 11 deletions

View file

@ -24,9 +24,9 @@ function! startify#get_sep() abort
return !exists('+shellslash') || &shellslash ? '/' : '\'
endfunction
function! startify#process_skiplist(arg) abort
function! startify#is_in_skiplist(arg) abort
for regexp in g:startify_skiplist
if a:arg =~# regexp
if (a:arg =~# regexp)
return 1
endif
endfor
@ -36,7 +36,7 @@ function! startify#save_session(...) abort
if !isdirectory(g:startify_session_dir)
if exists('*mkdir')
echo 'The session directory does not exist: '. g:startify_session_dir .'. Create it? [y/n]' | redraw
if nr2char(getchar()) == 'y'
if (nr2char(getchar()) == 'y')
call mkdir(g:startify_session_dir, 'p')
else
echo