diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-18 21:22:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-18 21:22:04 +0200 |
commit | 339288377072f66ec88e21903e75a82d23ffbf4f (patch) | |
tree | 463cc03171d77c2d3db38bcd6c5e8b76ab1e6492 /src/evalfunc.c | |
parent | bfd096d02087a10e8e2f4bdfb74e0435506fa8bb (diff) | |
download | vim-git-339288377072f66ec88e21903e75a82d23ffbf4f.tar.gz |
patch 7.4.2226v7.4.2226
Problem: The field names used by getbufinfo(), gettabinfo() and
getwininfo() are not consistent.
Solution: Use bufnr, winnr and tabnr. (Yegappan Lakshmanan)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 53526300d..16e2365de 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -3931,7 +3931,7 @@ get_buffer_info(buf_T *buf) if (dict == NULL) return NULL; - dict_add_nr_str(dict, "nr", buf->b_fnum, NULL); + dict_add_nr_str(dict, "bufnr", buf->b_fnum, NULL); dict_add_nr_str(dict, "name", 0L, buf->b_ffname != NULL ? buf->b_ffname : (char_u *)""); dict_add_nr_str(dict, "lnum", buflist_findlnum(buf), NULL); @@ -5001,7 +5001,7 @@ get_tabpage_info(tabpage_T *tp, int tp_idx) if (dict == NULL) return NULL; - dict_add_nr_str(dict, "nr", tp_idx, NULL); + dict_add_nr_str(dict, "tabnr", tp_idx, NULL); l = list_alloc(); if (l != NULL) @@ -5125,12 +5125,12 @@ get_win_info(win_T *wp, short tpnr, short winnr) if (dict == NULL) return NULL; - dict_add_nr_str(dict, "tpnr", tpnr, NULL); - dict_add_nr_str(dict, "nr", winnr, NULL); + dict_add_nr_str(dict, "tabnr", tpnr, NULL); + dict_add_nr_str(dict, "winnr", winnr, NULL); dict_add_nr_str(dict, "winid", wp->w_id, NULL); dict_add_nr_str(dict, "height", wp->w_height, NULL); dict_add_nr_str(dict, "width", wp->w_width, NULL); - dict_add_nr_str(dict, "bufnum", wp->w_buffer->b_fnum, NULL); + dict_add_nr_str(dict, "bufnr", wp->w_buffer->b_fnum, NULL); #ifdef FEAT_QUICKFIX dict_add_nr_str(dict, "quickfix", bt_quickfix(wp->w_buffer), NULL); |