diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-11-22 10:10:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-21 21:10:03 -0500 |
commit | e05db65d2ae3bb3c57e009e67ffc85794835a4e2 (patch) | |
tree | 133ed18aea564a488e6d6f96e5d2974e8d0caa06 /src/nvim/eval.c | |
parent | f45b2f313e681a0ceed1e1ac6aff54ce07716544 (diff) | |
download | rneovim-e05db65d2ae3bb3c57e009e67ffc85794835a4e2.tar.gz rneovim-e05db65d2ae3bb3c57e009e67ffc85794835a4e2.tar.bz2 rneovim-e05db65d2ae3bb3c57e009e67ffc85794835a4e2.zip |
vim-patch:8.2.3627: difficult to know where the text starts in a window (#16377)
vim-patch:8.2.3627: difficult to know where the text starts in a window
Problem: difficult to know where the text starts in a window. (Sergey
Vlasov)
Solution: Add the "textoff" entry in the result of getwininfo().
(closes vim/vim#9163)
https://github.com/vim/vim/commit/cdf5fdb2948ecdd24c6a1e27ed33dfa847c2b3e4
Fix indent in Test_getbufwintabinfo().
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index b97282dd1a..d3d0121632 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -6851,7 +6851,7 @@ dict_T *get_win_info(win_T *wp, int16_t tpnr, int16_t winnr) 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 + 1); - + tv_dict_add_nr(dict, S_LEN("textoff"), win_col_off(wp)); tv_dict_add_nr(dict, S_LEN("terminal"), bt_terminal(wp->w_buffer)); tv_dict_add_nr(dict, S_LEN("quickfix"), bt_quickfix(wp->w_buffer)); tv_dict_add_nr(dict, S_LEN("loclist"), |