|
|
@@ -756,7 +756,7 @@ endfunction
|
|
|
function! s:create_last_session_link(spath)
|
|
|
if !has('win32') && a:spath !~# '__LAST__$'
|
|
|
let cmd = printf('ln -sf %s %s',
|
|
|
- \ shellescape(a:spath),
|
|
|
+ \ shellescape(fnamemodify(a:spath, ':t')),
|
|
|
\ shellescape(s:session_dir .'/__LAST__'))
|
|
|
silent! call system(cmd)
|
|
|
if v:shell_error
|