diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-10-05 10:13:18 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-10-26 10:52:01 -0300 |
commit | e5165bae1139221ef752bccd582c7bd7474e6747 (patch) | |
tree | 42799e7a113b8e441bb14df724d4dece73974b1d /src/nvim/keymap.h | |
parent | d8055f8eab7b1c3fb90f69e9795e9e2a88d0cd68 (diff) | |
download | rneovim-e5165bae1139221ef752bccd582c7bd7474e6747.tar.gz rneovim-e5165bae1139221ef752bccd582c7bd7474e6747.tar.bz2 rneovim-e5165bae1139221ef752bccd582c7bd7474e6747.zip |
input: Remove CURSORHOLD key
Refactor input.c, normal.c and edit.c to use the K_EVENT special key to trigger
the CURSORHOLD event. In normal and edit mode, K_EVENT is treated as
K_CURSORHOLD, which enables better handling of arbitrary actions in those
states(eg: In normal mode the previous operator counts will be restored).
Also fix a test in vim_spec.lua. The test had a wrong assumption: cmdheight is
only used to determine when the press enter screen will be shown, not to limit
how many lines or control pagination.
Diffstat (limited to 'src/nvim/keymap.h')
-rw-r--r-- | src/nvim/keymap.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/keymap.h b/src/nvim/keymap.h index 119bff943a..d2d96c6149 100644 --- a/src/nvim/keymap.h +++ b/src/nvim/keymap.h @@ -242,7 +242,6 @@ enum key_extra { , KE_X2RELEASE , KE_DROP /* DnD data is available */ - , KE_CURSORHOLD /* CursorHold event */ , KE_NOP /* doesn't do something */ , KE_FOCUSGAINED /* focus gained */ , KE_FOCUSLOST /* focus lost */ @@ -437,7 +436,6 @@ enum key_extra { #define K_FOCUSGAINED TERMCAP2KEY(KS_EXTRA, KE_FOCUSGAINED) #define K_FOCUSLOST TERMCAP2KEY(KS_EXTRA, KE_FOCUSLOST) -#define K_CURSORHOLD TERMCAP2KEY(KS_EXTRA, KE_CURSORHOLD) #define K_EVENT TERMCAP2KEY(KS_EXTRA, KE_EVENT) #define K_PASTE TERMCAP2KEY(KS_EXTRA, KE_PASTE) |