comparison src/window.c @ 9858:3e96d9ed2ca1 v7.4.2204

commit https://github.com/vim/vim/commit/b5ae48e9ffd3b8eb6ca4057de11f1bddcde8ce6f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 12 22:23:25 2016 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Fri, 12 Aug 2016 22:30:07 +0200
parents fd9727ae3c49
children 42adbf172ecd
comparison
equal deleted inserted replaced
9857:0ee54b6ef77d 9858:3e96d9ed2ca1
7145 } 7145 }
7146 list_append_number(list, 0); 7146 list_append_number(list, 0);
7147 list_append_number(list, 0); 7147 list_append_number(list, 0);
7148 } 7148 }
7149 7149
7150 win_T *
7151 win_id2wp(typval_T *argvars)
7152 {
7153 win_T *wp;
7154 tabpage_T *tp;
7155 int id = get_tv_number(&argvars[0]);
7156
7157 FOR_ALL_TAB_WINDOWS(tp, wp)
7158 if (wp->w_id == id)
7159 return wp;
7160
7161 return NULL;
7162 }
7163
7150 int 7164 int
7151 win_id2win(typval_T *argvars) 7165 win_id2win(typval_T *argvars)
7152 { 7166 {
7153 win_T *wp; 7167 win_T *wp;
7154 int nr = 1; 7168 int nr = 1;