diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-20 11:14:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-20 11:14:24 +0000 |
commit | cdf5fdb2948ecdd24c6a1e27ed33dfa847c2b3e4 (patch) | |
tree | 8e75b5a5e25c30f7bd097b8575692742907baee3 /src/evalwindow.c | |
parent | b8e642f7ace5382b4dacb7a8effd86f22b828cc1 (diff) |
patch 8.2.3627: difficult to know where the text starts in a windowv8.2.3627
Problem: difficult to know where the text starts in a window. (Sergey
Vlasov)
Solution: Add the "textoff" entry in the result of getwininfo().
(closes #9163)
Diffstat (limited to 'src/evalwindow.c')
-rw-r--r-- | src/evalwindow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evalwindow.c b/src/evalwindow.c index c90571557d..c8c1442d27 100644 --- a/src/evalwindow.c +++ b/src/evalwindow.c @@ -407,6 +407,7 @@ get_win_info(win_T *wp, short tpnr, short winnr) #endif dict_add_number(dict, "width", wp->w_width); dict_add_number(dict, "wincol", wp->w_wincol + 1); + dict_add_number(dict, "textoff", win_col_off(wp)); dict_add_number(dict, "bufnr", wp->w_buffer->b_fnum); #ifdef FEAT_TERMINAL |