Marco Hinz 12 лет назад
Родитель
Сommit
ab48a7b26c
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      autoload/startify.vim

+ 2 - 1
autoload/startify.vim

@@ -92,6 +92,7 @@ function! startify#save_session(...) abort
         \ ? a:1
         \ : input('Save under this session name: ', '', 'custom,startify#get_session_names_as_string'))
         \ | redraw
+  let spath = startify#escape(spath)
   if !filereadable(spath)
     execute 'mksession '. spath | echo 'Session saved under: '. spath
     return
@@ -118,7 +119,7 @@ function! startify#load_session(...) abort
         \ : input('Load this session: ', '', 'custom,startify#get_session_names_as_string'))
         \ | redraw
   if filereadable(spath)
-    execute 'source '. spath
+    execute 'source '. startify#escape(spath)
   else
     echo 'No such file: '. spath
   endif