diff src/structs.h @ 28375:e466fdbe0699 v8.2.4713

patch 8.2.4713: plugins cannot track text scrolling Commit: https://github.com/vim/vim/commit/0937182d49fa8db50cec42785f22f1031760a0bd Author: LemonBoy <thatlemon@gmail.com> Date: Fri Apr 8 15:18:45 2022 +0100 patch 8.2.4713: plugins cannot track text scrolling Problem: Plugins cannot track text scrolling. Solution: Add the WinScrolled event. (closes https://github.com/vim/vim/issues/10102)
author Bram Moolenaar <Bram@vim.org>
date Fri, 08 Apr 2022 16:30:03 +0200
parents 390dfc3e409b
children d395fadbaf67
line wrap: on
line diff
--- a/src/structs.h
+++ b/src/structs.h
@@ -3510,6 +3510,12 @@ struct window_S
 				    // window
 #endif
 
+    // four fields that are only used when there is a WinScrolled autocommand
+    linenr_T	w_last_topline;	    // last known value for w_topline
+    colnr_T	w_last_leftcol;	    // last known value for w_leftcol
+    int		w_last_width;	    // last known value for w_width
+    int		w_last_height;	    // last known value for w_height
+
     /*
      * Layout of the window in the screen.
      * May need to add "msg_scrolled" to "w_winrow" in rare situations.