Explorar el Código

Handle "swap file found" (E325) exception

The user has been warned and asked about how to proceed already.
Catching this exception removes the additional output afterwards:

  Error detected while processing function <SNR>237_open_buffers:
  line   38:
  E325: ATTENTION

Closes #67.
Daniel Hahler hace 12 años
padre
commit
69fa3cf9af
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      autoload/startify.vim

+ 2 - 1
autoload/startify.vim

@@ -502,8 +502,9 @@ function! s:open_buffers(cword) abort
   else
     try
       execute 'normal' a:cword
-    catch /E832/
+    catch /E832/  " don't ask for undo encryption key twice
       edit
+    catch /E325/  " swap file found
     endtry
   endif
 endfunction