aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-15 20:33:00 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-15 20:37:53 -0400
commit2036d0428472b2453cc459a9ab27d39ac0063d2a (patch)
treea55d86ccccffb29fb57f970ea506083b89273c86 /src/nvim/eval.c
parentb89c08901c1e619b9aeca6f109f6ba73a7be4e9f (diff)
downloadrneovim-2036d0428472b2453cc459a9ab27d39ac0063d2a.tar.gz
rneovim-2036d0428472b2453cc459a9ab27d39ac0063d2a.tar.bz2
rneovim-2036d0428472b2453cc459a9ab27d39ac0063d2a.zip
vim-patch:8.1.0184: not easy to figure out the window layout
Problem: Not easy to figure out the window layout. Solution: Add "wincol" and "winrow" to what getwininfo() returns. https://github.com/vim/vim/commit/b6959a8e06cef6d2126b030b2f8acd49457a3582
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 17057ea28d..4bb7a45232 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -10262,8 +10262,10 @@ static dict_T *get_win_info(win_T *wp, int16_t tpnr, int16_t winnr)
tv_dict_add_nr(dict, S_LEN("winnr"), winnr);
tv_dict_add_nr(dict, S_LEN("winid"), wp->handle);
tv_dict_add_nr(dict, S_LEN("height"), wp->w_height);
+ tv_dict_add_nr(dict, S_LEN("winrow"), wp->w_winrow);
tv_dict_add_nr(dict, S_LEN("width"), wp->w_width);
tv_dict_add_nr(dict, S_LEN("bufnr"), wp->w_buffer->b_fnum);
+ tv_dict_add_nr(dict, S_LEN("wincol"), wp->w_wincol);
tv_dict_add_nr(dict, S_LEN("quickfix"), bt_quickfix(wp->w_buffer));
tv_dict_add_nr(dict, S_LEN("loclist"),