aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-10 06:16:54 +0800
committerGitHub <noreply@github.com>2022-11-10 06:16:54 +0800
commitf2857dcd5abaf3a5aee9271b79ffa4eee345d21c (patch)
treeba48c59cd9173a15e01ed68abcf73c6112401e29 /src/nvim/message.h
parentfae754073289566051433fae74ec65783f9e7a6a (diff)
downloadrneovim-f2857dcd5abaf3a5aee9271b79ffa4eee345d21c.tar.gz
rneovim-f2857dcd5abaf3a5aee9271b79ffa4eee345d21c.tar.bz2
rneovim-f2857dcd5abaf3a5aee9271b79ffa4eee345d21c.zip
fix(messages): reset msg_grid_scroll_discount when redrawing (#21000)
Diffstat (limited to 'src/nvim/message.h')
-rw-r--r--src/nvim/message.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/message.h b/src/nvim/message.h
index 31cd54f18c..191d3b8da7 100644
--- a/src/nvim/message.h
+++ b/src/nvim/message.h
@@ -66,6 +66,8 @@ EXTERN ScreenGrid msg_grid_adj INIT(= SCREEN_GRID_INIT);
// value of msg_scrolled at latest msg_scroll_flush.
EXTERN int msg_scrolled_at_flush INIT(= 0);
+EXTERN int msg_grid_scroll_discount INIT(= 0);
+
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "message.h.generated.h"
#endif