forked from aniani/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 #9163)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user