jeetsukumaran / vim-buffergator

Vim plugin to list, select and switch between buffers.
498 stars 49 forks source link

Unexpected focus order on deletion of buffer when using MRU sort #10

Closed ryanwood closed 12 years ago

ryanwood commented 12 years ago

When sorted using "Most Recently Used" and pressing "d" to delete a buffer, the focus jumps around the list. It looks like it's going to the previous buffer number. It makes for rough usability and unintended deletions when deleting multiple buffers quickly. Is it possible to have the focus remain in the spot you were with the buffers rolling up taking the place of the deleted one?

If I have 15 buffers and I navigate to the 10th, I should be able to press "d" 5 times to delete the last 5 buffers in the current sort order. Instead, I delete the current buffer number and the previous 5 numbers buffers which is not correct.

Thoughts?

jeetsukumaran commented 12 years ago

Hi Ryan,

Sorry for the long delay. I will look into this.

jeetsukumaran commented 12 years ago

The latest revision implements the requested behavior. Please let me know if it works out OK.

ryanwood commented 12 years ago

Works great! Thanks.