Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tabpages): renaming bug on reopened tab (#877)
vim.fn.tabpagenr gets the tab number but api.nvim_tabpage_set_var expects tab id, meaning the tab rename would fail if a tab was closed and reopened. This change passes 0 into api.nvim_tabpage_set_var which will use the current focused tab without needing to retrieve the id.
- Loading branch information