diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-15 17:01:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-15 17:01:11 +0200 |
commit | 7132ddc1014a4e1230f0080e418221e5843e1277 (patch) | |
tree | 639bf26cc5e7a66e8a6ac9776d8eff140fc1ee04 /src/evalfunc.c | |
parent | 44a693a1bdfe987edb649677c94c214f94b2aada (diff) |
patch 8.1.0187: getwininfo() and win_screenpos() return different numbersv8.1.0187
Problem: getwininfo() and win_screenpos() return different numbers.
Solution: Add one to "wincol" and "winrow" from getwininfo().
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 13c60b9930..2e06c2063d 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -5648,12 +5648,12 @@ get_win_info(win_T *wp, short tpnr, short winnr) dict_add_number(dict, "winnr", winnr); dict_add_number(dict, "winid", wp->w_id); dict_add_number(dict, "height", wp->w_height); - dict_add_number(dict, "winrow", wp->w_winrow); + dict_add_number(dict, "winrow", wp->w_winrow + 1); #ifdef FEAT_MENU dict_add_number(dict, "winbar", wp->w_winbar_height); #endif dict_add_number(dict, "width", wp->w_width); - dict_add_number(dict, "wincol", wp->w_wincol); + dict_add_number(dict, "wincol", wp->w_wincol + 1); dict_add_number(dict, "bufnr", wp->w_buffer->b_fnum); #ifdef FEAT_TERMINAL |