1
0
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:
Bram Moolenaar
2016-08-12 22:23:25 +02:00
parent ebcccad573
commit b5ae48e9ff
13 changed files with 528 additions and 1 deletions

View File

@@ -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)
{