diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-11-26 07:53:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-26 07:53:07 +0800 |
commit | 66bb1e577c96d8eb63c04dcc737394b4ce2b0f5d (patch) | |
tree | 82fc231a3912ecdba0896a63ef1ef8b5ac05ee43 /src/nvim/eval/window.c | |
parent | c644228e1dfe9f70aae53292b328be98dc95b8f7 (diff) | |
download | rneovim-66bb1e577c96d8eb63c04dcc737394b4ce2b0f5d.tar.gz rneovim-66bb1e577c96d8eb63c04dcc737394b4ce2b0f5d.tar.bz2 rneovim-66bb1e577c96d8eb63c04dcc737394b4ce2b0f5d.zip |
vim-patch:9.1.0888: leftcol property not available in getwininfo() (#31349)
Problem: leftcol property not available in getwininfo()
Solution: add leftcol property property (glepnir)
closes: vim/vim#16119
https://github.com/vim/vim/commit/0a850673e3d4193d55f47bcbbc0b0da5f155307d
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'src/nvim/eval/window.c')
-rw-r--r-- | src/nvim/eval/window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval/window.c b/src/nvim/eval/window.c index 86495f1cb6..a9d3e89177 100644 --- a/src/nvim/eval/window.c +++ b/src/nvim/eval/window.c @@ -326,6 +326,7 @@ static dict_T *get_win_info(win_T *wp, int16_t tpnr, int16_t winnr) tv_dict_add_nr(dict, S_LEN("winrow"), wp->w_winrow + 1); tv_dict_add_nr(dict, S_LEN("topline"), wp->w_topline); tv_dict_add_nr(dict, S_LEN("botline"), wp->w_botline - 1); + tv_dict_add_nr(dict, S_LEN("leftcol"), wp->w_leftcol); tv_dict_add_nr(dict, S_LEN("winbar"), wp->w_winbar_height); tv_dict_add_nr(dict, S_LEN("width"), wp->w_width_inner); tv_dict_add_nr(dict, S_LEN("bufnr"), wp->w_buffer->b_fnum); |