Explorar o código

handle spaces in paths

Closes #12.
Marco Hinz %!s(int64=12) %!d(string=hai) anos
pai
achega
12d0ca643b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -17,7 +17,7 @@ function! startify#get_session_names_as_string(lead, ...) abort
 endfunction
 
 function! startify#escape(path) abort
-  return !exists('+shellslash') || &shellslash ? a:path : escape(a:path, '\')
+  return !exists('+shellslash') || &shellslash ? fnameescape(a:path) : escape(a:path, '\')
 endfunction
 
 function! startify#get_sep() abort