From 8545f6f553640dc0318582c9749c893f2be3345e Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 12 Jan 2016 15:11:03 +0100 Subject: [PATCH] Put last used session marker in session directory --- autoload/startify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index f818285..a660f46 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -757,7 +757,7 @@ 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, ':h') .'/__LAST__')) + \ shellescape(s:session_dir .'/__LAST__')) silent! call system(cmd) if v:shell_error echomsg "startify: Can't create 'last used session' symlink."