From 7d36933f9c80aa8e32af9e69183711eef3d9daf6 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 23 Oct 2014 12:13:00 +0200 Subject: [PATCH] Don't truncate g:startify_session_savevars References #113. --- autoload/startify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', []))