Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

click on tabname goto line instead of goto tab #48

Open
xavier-balesi opened this issue Jun 19, 2022 · 2 comments
Open

click on tabname goto line instead of goto tab #48

xavier-balesi opened this issue Jun 19, 2022 · 2 comments

Comments

@xavier-balesi
Copy link

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
Copy link
Author

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

@juienpro
Copy link

Works well, many thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants