aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2014-12-26 16:49:44 +0100
committerFlorian Walch <florian@fwalch.com>2014-12-26 16:54:24 +0100
commite27460b60cb3d725ecfe8ba34438642fdb174280 (patch)
tree99949dede641e5350a20fe2f6319af66117c8b85 /src/nvim/getchar.c
parentcab88790bcf8fa4ae5a634b1ccaf84d337fa47e2 (diff)
downloadrneovim-e27460b60cb3d725ecfe8ba34438642fdb174280.tar.gz
rneovim-e27460b60cb3d725ecfe8ba34438642fdb174280.tar.bz2
rneovim-e27460b60cb3d725ecfe8ba34438642fdb174280.zip
vim-patch:7.4.552
Problem: Langmap applies to Insert mode expression mappings. Solution: Check for Insert mode. (Daniel Hahler) https://code.google.com/p/vim/source/detail?r=v7-4-552
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index d0eebf8fea..e12601e4c9 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -1775,7 +1775,7 @@ static int vgetorpeek(int advance)
if (c1 == K_SPECIAL)
nolmaplen = 2;
else {
- LANGMAP_ADJUST(c1, TRUE);
+ LANGMAP_ADJUST(c1, (State & INSERT) == 0);
nolmaplen = 0;
}
/* First try buffer-local mappings. */