diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-04-17 11:32:14 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-04-21 12:32:38 +0200 |
commit | 9cdbbd49825561d642705990a2704b2241cf0584 (patch) | |
tree | 57c43ed070d90091d6d759c50ecfec2c6341a3aa /src/nvim/cursor_shape.h | |
parent | 14b1becb5466003a65fa6be0517352abb7bc0f42 (diff) | |
download | rneovim-9cdbbd49825561d642705990a2704b2241cf0584.tar.gz rneovim-9cdbbd49825561d642705990a2704b2241cf0584.tar.bz2 rneovim-9cdbbd49825561d642705990a2704b2241cf0584.zip |
ui: support more cursor shape modes
throttle unneccessary cursor shape events
Diffstat (limited to 'src/nvim/cursor_shape.h')
-rw-r--r-- | src/nvim/cursor_shape.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/cursor_shape.h b/src/nvim/cursor_shape.h index 7cf65cba3c..2c466603f0 100644 --- a/src/nvim/cursor_shape.h +++ b/src/nvim/cursor_shape.h @@ -25,7 +25,7 @@ SHAPE_IDX_MORE = 14, ///< Hit-return or More SHAPE_IDX_MOREL = 15, ///< Hit-return or More in last line SHAPE_IDX_SM = 16, ///< showing matching paren SHAPE_IDX_COUNT = 17 -} MouseMode; +} ModeShape; typedef enum { SHAPE_BLOCK = 0, ///< block cursor @@ -53,6 +53,7 @@ typedef struct cursor_entry { char used_for; ///< SHAPE_MOUSE and/or SHAPE_CURSOR } cursorentry_T; +extern cursorentry_T shape_table[SHAPE_IDX_COUNT]; #ifdef INCLUDE_GENERATED_DECLARATIONS # include "cursor_shape.h.generated.h" |