Delete quickfix/loclist to empty will cause ferret#private#qf_delete error
crispgm opened this issue · 3 comments
crispgm commented
wincent commented
Thanks for the report @crispgm. I think this is fixed by cdccc5f — I say "think" because I added an if
check to stop the E42
error (caused by Ferret trying to jump to the "next" item in the listing, which won't exist after deleting the last item), but I didn't see the E684
error, so not sure how to reproduce that one. I can imagine a line like this one triggering such an error:
ferret/autoload/ferret/private.vim
Line 23 in cdccc5f
And having typed out that sentence, I realize that you could cause it to throw an error by deleting (eg. dd
) in an already-empty listing. I'll add one more commit now to stop that from happening.