tabline.nvim
tabline.nvim copied to clipboard
click on tabname goto line instead of goto tab
with neovim 0.7.0
and v0.8.0-dev+448-g7b2b44bce
with multiple tabs, when I click on one, I expect switching to it, but it go to line number corresponding to the tab number in the current buffer.
I fixed it locally :
this line execute ":tab " . a:tabnr
replaced by : execute a:tabnr . "tabnext"
I would be happy to do a PR to contribute this project :)
After some checks, the first fix causes a regression (unable to rename tabs) Ithe good fix is :
function! TablineSwitchTab(tabnr, mouseclicks, mousebutton, modifiers)
execute a:tabnr . "tab"
execute a:tabnr . "tabnext"
endfunction
Works well, many thanks!