jlanzarotta/bufexplorer — pull request #15 by halfmanhalffish (2014-10-09 18:43:11+00:00)
Title: bug fix

when quitting the bufexplorer window using the 'q' mapping, switch to the previously active buffer rather than the first buffer in the list also, preserve the correct alt buffer so that works.

The bug was as follows:

I have 3 files open. The first buffer (ie buffer with the lowest buffer number) is the alternate buffer, ie hidden and the one that I was editing before switching to the current buffer. The second buffer is the current buffer.

I go into bufexplorer. I decide that I didn't want to switch buffer after all, so I leave the cursor on the line where it was to start with (ie the current buffer) and I press return. I expect to return to the current buffer but to my surprise I land in the alternate buffer.

If I am editing the first buffer, go into bufexplorer, change mind and hit return then I land in the first buffer as expected.

I uninstalled almost all my plugins and retested to see if that made a difference, and it didn't.