diff options
author | LemonBoy <thatlemon@gmail.com> | 2022-04-08 15:18:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-08 15:18:45 +0100 |
commit | 0937182d49fa8db50cec42785f22f1031760a0bd (patch) | |
tree | a41ab36fcbeb5b2f0bc91ce36b2d056af2ec2491 /src/structs.h | |
parent | 18ee0f603ebd3c091f6d2ab88e652fda32821048 (diff) | |
download | vim-git-0937182d49fa8db50cec42785f22f1031760a0bd.tar.gz |
patch 8.2.4713: plugins cannot track text scrollingv8.2.4713
Problem: Plugins cannot track text scrolling.
Solution: Add the WinScrolled event. (closes #10102)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index b8648a545..738c59231 100644 --- 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. |