From c3de63bfbc168cd8ccc53dbb3e587043c11f7276 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sat, 20 Dec 2014 16:46:09 +0100 Subject: [PATCH] vim-patch:7.4.457 #1713 Problem: Using getchar() in an expression mapping may result in K_CURSORHOLD, which can't be recognized. Solution: Add the key. (Hirohito Higashi) https://code.google.com/p/vim/source/detail?r=v7-4-457 --- src/nvim/keymap.c | 1 + src/nvim/version.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c index 9c5160ffb2..33eaf35555 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -281,6 +281,7 @@ static struct key_name_entry { {K_ZERO, (char_u *)"Nul"}, {K_SNR, (char_u *)"SNR"}, {K_PLUG, (char_u *)"Plug"}, + {K_CURSORHOLD, (char_u *)"CursorHold"}, {0, NULL} }; diff --git a/src/nvim/version.c b/src/nvim/version.c index 54646d6061..cd11dfe1d0 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -280,7 +280,7 @@ static int included_patches[] = { //460 NA //459 NA //458, - //457, + 457, 456, 455, 454,