change shellslash handling
This commit is contained in:
parent
43feec0a89
commit
dad7c9cd08
2 changed files with 14 additions and 12 deletions
|
@ -16,6 +16,14 @@ function! startify#get_session_names_as_string(lead, ...) abort
|
|||
return join(map(split(globpath(g:startify_session_dir, '*'.a:lead.'*', '\n')), 'fnamemodify(v:val, ":t")'), "\n")
|
||||
endfunction
|
||||
|
||||
function! startify#escape(path) abort
|
||||
return !exists('+shellslash') || &shellslash ? a:path : escape(a:path, '\')
|
||||
endfunction
|
||||
|
||||
function! startify#get_sep() abort
|
||||
return !exists('+shellslash') || &shellslash ? '/' : '\'
|
||||
endfunction
|
||||
|
||||
function! startify#save_session(...) abort
|
||||
if !isdirectory(g:startify_session_dir)
|
||||
echo 'The session directory does not exist: '. g:startify_session_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue