Error in Window Closing
It shows an error in window closing by x key in TabManager window:
function <SNR>156_ManDelete の処理中にエラーが検出されました:
行 22:
E16: 無効な範囲です: 3winc w
It says unavialable range of 3.
Do below to repro:
- Set
let g:tabman_side = 'right'in.vimrc - Run vim
- 1 window exists
- Open new window
- 2 window exists
- Open TabManager window
- 3 window exists
- Close a window by
xhotkey in TabManager window- Then, it closes a window, and it has 2 windows including TabManager
- After that, it tries to close window
3, but range over- It was old TabManager window number in
g:tabman_side = 'right'case
- It was old TabManager window number in
I think this line is unnecessary. Why you do this line?
I misunderstood: that line was not window closing, but going back to the window where it had been, was it?
So, it should decriment curwin
if s:ManSelect()-ed (or closing) window is before curwin, huh?
(Also, if curwin is the closing window, it should move to another.)
It is the case with g:tabman_side = 'right',
as it will likely to close an window before TabManager.
I'll check and fix it later.
Fixed.
Besides window, closing tab before current tab had the same problem.
Fixed: g:tabman_side = 'right' and closing the tabman window itself.