Mercurial > vim
diff src/evalwindow.c @ 26191:72c394673e00 v8.2.3627
patch 8.2.3627: difficult to know where the text starts in a window
Commit: https://github.com/vim/vim/commit/cdf5fdb2948ecdd24c6a1e27ed33dfa847c2b3e4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 20 11:14:24 2021 +0000
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 #9163)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 20 Nov 2021 12:15:03 +0100 |
parents | 2c64a420ce7e |
children | bbcbb3c13fba |
line wrap: on
line diff
--- a/src/evalwindow.c +++ b/src/evalwindow.c @@ -407,6 +407,7 @@ get_win_info(win_T *wp, short tpnr, shor #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