aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-09-01 20:25:36 +0200
committerGitHub <noreply@github.com>2019-09-01 20:25:36 +0200
commit9df3a676e7f2302929061a6c0edf42e5fb3f3873 (patch)
tree75b58a88ca69022a6e893e337c39e283d5577452 /src/nvim/message.h
parent2f37c243482eec20fe52f298368c02eca21c758f (diff)
parent14615f7f67664cd63410999c2cd13ee50ed14571 (diff)
downloadrneovim-9df3a676e7f2302929061a6c0edf42e5fb3f3873.tar.gz
rneovim-9df3a676e7f2302929061a6c0edf42e5fb3f3873.tar.bz2
rneovim-9df3a676e7f2302929061a6c0edf42e5fb3f3873.zip
Merge pull request #10400 from bfredl/msg_grid
Dedicated message grid.
Diffstat (limited to 'src/nvim/message.h')
-rw-r--r--src/nvim/message.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nvim/message.h b/src/nvim/message.h
index 914c10af43..fdb9bc96ca 100644
--- a/src/nvim/message.h
+++ b/src/nvim/message.h
@@ -7,6 +7,7 @@
#include "nvim/macros.h"
#include "nvim/types.h"
+#include "nvim/grid_defs.h"
/*
* Types of dialogs passed to do_dialog().
@@ -90,6 +91,23 @@ extern MessageHistoryEntry *last_msg_hist;
EXTERN bool msg_ext_need_clear INIT(= false);
+// allocated grid for messages. Used when display+=msgsep is set, or
+// ext_multigrid is active. See also the description at msg_scroll_flush()
+EXTERN ScreenGrid msg_grid INIT(= SCREEN_GRID_INIT);
+EXTERN int msg_grid_pos INIT(= 0);
+
+// "adjusted" message grid. This grid accepts positions relative to
+// default_grid. Internally it will be translated to a position on msg_grid
+// relative to the start of the message area, or directly mapped to default_grid
+// for legacy (display-=msgsep) message scroll behavior.
+// // TODO(bfredl): refactor "internal" message logic, msg_row etc
+// to use the correct positions already.
+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);
+
+
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "message.h.generated.h"
#endif