Parcourir la source

Handle encrypted files

Marco Hinz il y a 12 ans
Parent
commit
ca6915e420
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      autoload/startify.vim

+ 5 - 1
autoload/startify.vim

@@ -499,7 +499,11 @@ function! s:open_buffers(cword) abort
     endif
   " no markers found; open a single buffer
   else
-    execute 'normal' a:cword
+    try
+      execute 'normal' a:cword
+    catch /E832/
+      edit
+    endtry
   endif
 endfunction