Skip to content

Commit

Permalink
Merge pull request #49 from hkupty/fix-tabpage
Browse files Browse the repository at this point in the history
Fix wrong tab indexing
  • Loading branch information
hkupty committed Jan 24, 2022
2 parents 5ec3f23 + 136b71e commit 59333ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/nvimux/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ end
nvimux.go_to_tab = function(number)
local current_tabs = vim.api.nvim_list_tabpages()

if vim.tbl_contains(current_tabs, number) then
vim.api.nvim_set_current_tabpage(number)
end
vim.api.nvim_set_current_tabpage(current_tabs[number])
end


Expand Down

0 comments on commit 59333ee

Please sign in to comment.