tabline.nvim icon indicating copy to clipboard operation
tabline.nvim copied to clipboard

click on tabname goto line instead of goto tab

Open xavier-balesi opened this issue 2 years ago • 2 comments

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 :)

xavier-balesi avatar Jun 19 '22 22:06 xavier-balesi

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

xavier-balesi avatar Jun 20 '22 18:06 xavier-balesi

Works well, many thanks!

juienpro avatar Feb 19 '23 11:02 juienpro