feat(api): add nvim_tabpage_set_win (#27222)

Allows setting the current window of a non-current tabpage
without switching tabpages.
This commit is contained in:
Will Hopkins
2024-01-28 23:18:33 -08:00
committed by GitHub
parent 5e5b004da4
commit ca9f6f5694
6 changed files with 103 additions and 1 deletions

View File

@@ -1952,6 +1952,12 @@ function vim.api.nvim_tabpage_list_wins(tabpage) end
--- @param value any Variable value
function vim.api.nvim_tabpage_set_var(tabpage, name, value) end
--- Sets the current window in a tabpage
---
--- @param tabpage integer Tabpage handle, or 0 for current tabpage
--- @param win integer Window handle, must already belong to {tabpage}
function vim.api.nvim_tabpage_set_win(tabpage, win) end
--- Calls a function with window as temporary current window.
---
--- @param window integer Window handle, or 0 for current window