mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
vim-patch:7.4.2204
Problem: It is not easy to get information about buffers, windows and
tabpages.
Solution: Add getbufinfo(), getwininfo() and gettabinfo(). (Yegappan
Lakshmanan)
b5ae48e9ff
This commit is contained in:
@@ -5797,6 +5797,19 @@ void win_id2tabwin(typval_T *argvars, list_T *list)
|
||||
list_append_number(list, winnr);
|
||||
}
|
||||
|
||||
win_T * win_id2wp(typval_T *argvars)
|
||||
{
|
||||
int id = get_tv_number(&argvars[0]);
|
||||
|
||||
FOR_ALL_TAB_WINDOWS(tp, wp) {
|
||||
if (wp->handle == id) {
|
||||
return wp;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int win_id2win(typval_T *argvars)
|
||||
{
|
||||
win_T *wp;
|
||||
|
Reference in New Issue
Block a user