Use wipe instead of delete on hidden?
sodapopcan opened this issue · 3 comments
I always get this error when I use c-o or ^ after quitting extradite which is incredibly frustrating:
Error detected while processing CursorMoved Auto commands for
"<buffer=35>":
E121: Undefined variable: b:extradata_list
I fix it by changing bufhidden=delete
to bufhidden=wipe
on line 139. This, of course, wipes out the alternate file for ^ no longer works, but it's much better than getting the error and being taken to the commit log (minus the preview window). C-o still works fine.
Any other ideas on getting around this?
Any other ideas on getting around this?
I though using :keepalt
modifier can help, but it doesn't. So there seems to be no better alternative to your solution.
Thanks for the suggestion!
NERD tree does some sorcery to get around this but haven't put in the time to figure this out. I too tried keepalt to no avail :\ Other than doing something hacky like saving the current alt file to a variant, the jumping to it then back to previous file after quit, I'm not sure what else could be done here other than wiping the buffer completely. I certainly prefer this to getting the error as it happens frequently. Could fix the error too, of course, but I'd rather not be taken back to the Extradite buffer.
I've pushed the change of bufhidden
to wipe
as it's the best we have for now. I didn't find anything interesting in closeTreeWindow() function of NERDTree.