Put last used session marker in session directory
This commit is contained in:
parent
e3fb0cd845
commit
8545f6f553
|
@ -757,7 +757,7 @@ function! s:create_last_session_link(spath)
|
||||||
if !has('win32') && a:spath !~# '__LAST__$'
|
if !has('win32') && a:spath !~# '__LAST__$'
|
||||||
let cmd = printf('ln -sf %s %s',
|
let cmd = printf('ln -sf %s %s',
|
||||||
\ shellescape(a:spath),
|
\ shellescape(a:spath),
|
||||||
\ shellescape(fnamemodify(a:spath, ':h') .'/__LAST__'))
|
\ shellescape(s:session_dir .'/__LAST__'))
|
||||||
silent! call system(cmd)
|
silent! call system(cmd)
|
||||||
if v:shell_error
|
if v:shell_error
|
||||||
echomsg "startify: Can't create 'last used session' symlink."
|
echomsg "startify: Can't create 'last used session' symlink."
|
||||||
|
|
Loading…
Reference in a new issue