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.
This commit is contained in:
parent
2c4113999d
commit
69fa3cf9af
|
@ -502,8 +502,9 @@ function! s:open_buffers(cword) abort
|
||||||
else
|
else
|
||||||
try
|
try
|
||||||
execute 'normal' a:cword
|
execute 'normal' a:cword
|
||||||
catch /E832/
|
catch /E832/ " don't ask for undo encryption key twice
|
||||||
edit
|
edit
|
||||||
|
catch /E325/ " swap file found
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in a new issue