Closed Lekensteyn closed 6 years ago
Thanks for bringing this to my attention: I wasn't even aware Vim wraps the swap recovery process in an exception until now. That exception being triggered in mid function call when you use fetch, things go awry; I’ll have to see what the most elegant way of bowing out is in that case, but this definitely should be fixable.
@Lekensteyn as I won’t have the opportunity to reproduce this for a few days at least, could you tell me what error exactly is triggered by choosing any recovery option but (A)bort
? Thanks!
For anyone who wants to use the fix before Release 2.1 comes out, do from a new branch
git pull origin fix/swap-exception
When a swap file is present and vim-fetch is activated, an error is reported:
Steps to reproduce:
touch foo && vim foo
mv .foo.swp .foo.tmp
:q
)mv .foo.tmp .foo.swp
vim foo:1
[O]pen Read-Only
,(E)dit anyway
,(R)ecover
,(D)elete it
or(Q)uit
. These trigger an error. Option(A)bort
is unaffected.