907th/vim-auto-save

Error while opening fuzzy finder listing buffer

kqvanity opened this issue · 0 comments

I've set the autosave to get fired when switching window, however if i happened to have an opened fuzzy finder i.e. non-writable listing buffer, then the following error message would pop up.

Error detected while processing function terminus#private#term_focus_lost[2]..FocusLost Autocommands for "*"..function AutoSave[26]..DoSave:
Line   4:
E565: Not allowed to change text or change window: buffer 106

I know that it's just an edge case, but improvements are always welcome (Unless it'd compromise something else).