Resolve scoping issues
This commit is contained in:
parent
12e662ece0
commit
77642786c2
|
@ -119,8 +119,8 @@ function! startify#get_separator() abort
|
||||||
return !exists('+shellslash') || &shellslash ? '/' : '\'
|
return !exists('+shellslash') || &shellslash ? '/' : '\'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:get_session_names {{{1
|
" Function: startify#get_session_names {{{1
|
||||||
function! s:get_session_names(lead, ...) abort
|
function! startify#get_session_names(lead, ...) abort
|
||||||
return map(split(globpath(s:session_dir, '*'.a:lead.'*', '\n')), 'fnamemodify(v:val, ":t")')
|
return map(split(globpath(s:session_dir, '*'.a:lead.'*', '\n')), 'fnamemodify(v:val, ":t")')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -153,8 +153,8 @@ function! s:is_bookmark(arg) abort
|
||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:delete_session {{{1
|
" Function: startify#delete_session {{{1
|
||||||
function! s:delete_session(...) abort
|
function! startify#delete_session(...) abort
|
||||||
if !isdirectory(s:session_dir)
|
if !isdirectory(s:session_dir)
|
||||||
echo 'The session directory does not exist: '. s:session_dir
|
echo 'The session directory does not exist: '. s:session_dir
|
||||||
return
|
return
|
||||||
|
@ -178,8 +178,8 @@ function! s:delete_session(...) abort
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:save_session {{{1
|
" Function: startify#save_session {{{1
|
||||||
function! s:save_session(...) abort
|
function! startify#save_session(...) abort
|
||||||
if !isdirectory(s:session_dir)
|
if !isdirectory(s:session_dir)
|
||||||
if exists('*mkdir')
|
if exists('*mkdir')
|
||||||
echo 'The session directory does not exist: '. s:session_dir .'. Create it? [y/n]' | redraw
|
echo 'The session directory does not exist: '. s:session_dir .'. Create it? [y/n]' | redraw
|
||||||
|
@ -211,8 +211,8 @@ function! s:save_session(...) abort
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:load_session {{{1
|
" Function: startify#load_session {{{1
|
||||||
function! s:load_session(...) abort
|
function! startify#load_session(...) abort
|
||||||
if !isdirectory(s:session_dir)
|
if !isdirectory(s:session_dir)
|
||||||
echo 'The session directory does not exist: '. s:session_dir
|
echo 'The session directory does not exist: '. s:session_dir
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue