weynhamz / vim-plugin-minibufexpl

Elegant buffer explorer - takes very little screen space
http://www.vim.org/scripts/script.php?script_id=159
99 stars 22 forks source link

MBEbd error when only two buffers exist #48

Closed j3soon closed 1 year ago

j3soon commented 7 years ago

I encountered an error same as the error here: fholgado/minibufexpl.vim#145. I decided to make the issue more detailed.

If there are only two buffers exist, deleting the second (active) one by pressing d on the tabs bar throws the error:

Error detected while processing function <SNR>39_MBEDeleteBuffer[13]..<SNR>39_De
leteBuffer[67]..<SNR>39_UpdateExplorer[44]..<SNR>39_SwitchWindow:
line   24:
E16: Invalid range: noautocmd 2wincmd w

It occurs when calling MBEbd on the active buffer, while the cursor is on the active tab.