forked from aniani/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)
This commit is contained in:
14
src/window.c
14
src/window.c
@@ -7147,6 +7147,20 @@ win_id2tabwin(typval_T *argvars, list_T *list)
|
||||
list_append_number(list, 0);
|
||||
}
|
||||
|
||||
win_T *
|
||||
win_id2wp(typval_T *argvars)
|
||||
{
|
||||
win_T *wp;
|
||||
tabpage_T *tp;
|
||||
int id = get_tv_number(&argvars[0]);
|
||||
|
||||
FOR_ALL_TAB_WINDOWS(tp, wp)
|
||||
if (wp->w_id == id)
|
||||
return wp;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
win_id2win(typval_T *argvars)
|
||||
{
|
||||
|
Reference in New Issue
Block a user