aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-09-16 11:20:26 +0200
committerGitHub <noreply@github.com>2017-09-16 11:20:26 +0200
commit47019bb167e2b2d28c8648d39781c66e3ec02c00 (patch)
tree4ab602e3f1c00ea08f0547d9ea09fb61186cb9b0 /src
parent1cebf17fbe6943a2151a37e054b1475e049bad5f (diff)
downloadrneovim-47019bb167e2b2d28c8648d39781c66e3ec02c00.tar.gz
rneovim-47019bb167e2b2d28c8648d39781c66e3ec02c00.tar.bz2
rneovim-47019bb167e2b2d28c8648d39781c66e3ec02c00.zip
getchar.c: add TERM_FOCUS to MAP_HASH (#7271)
vim-patch:8.0.1108 https://github.com/vim/vim/commit/69fbc9e1dab176f345719436cd89d854df0a2abd
Diffstat (limited to 'src')
-rw-r--r--src/nvim/getchar.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index a22b716bb6..f5949333bd 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -92,17 +92,15 @@ static int typeahead_char = 0; /* typeahead char that's not flushed */
*/
static int block_redo = FALSE;
-/*
- * Make a hash value for a mapping.
- * "mode" is the lower 4 bits of the State for the mapping.
- * "c1" is the first character of the "lhs".
- * Returns a value between 0 and 255, index in maphash.
- * Put Normal/Visual mode mappings mostly separately from Insert/Cmdline mode.
- */
+// Make a hash value for a mapping.
+// "mode" is the lower 4 bits of the State for the mapping.
+// "c1" is the first character of the "lhs".
+// Returns a value between 0 and 255, index in maphash.
+// Put Normal/Visual mode mappings mostly separately from Insert/Cmdline mode.
#define MAP_HASH(mode, \
c1) (((mode) & \
(NORMAL + VISUAL + SELECTMODE + \
- OP_PENDING)) ? (c1) : ((c1) ^ 0x80))
+ OP_PENDING + TERM_FOCUS)) ? (c1) : ((c1) ^ 0x80))
// Each mapping is put in one of the MAX_MAPHASH hash lists,
// to speed up finding it.