diff --git a/autoload/startify.vim b/autoload/startify.vim index dea52aa..9797079 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -263,7 +263,7 @@ function! startify#session_write(spath) execute 'split' a:spath " put existing variables from savevars into session file - call append(line('$')-3, map(filter(get(g:, 'startify_session_savevars', []), 'exists(v:val)'), '"let ". v:val ." = ". strtrans(string(eval(v:val)))')) + call append(line('$')-3, map(filter(copy(get(g:, 'startify_session_savevars', [])), 'exists(v:val)'), '"let ". v:val ." = ". strtrans(string(eval(v:val)))')) " put commands from savecmds into session file call append(line('$')-3, get(g:, 'startify_session_savecmds', []))