summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-12-14 00:43:54 +0100
committerBram Moolenaar <Bram@vim.org>2014-12-14 00:43:54 +0100
commitc68c72ea7bbc92ce7cc2c746ce6408dc6cbe06cd (patch)
tree847a39ac093febb4817bc4371d32b61327e0606b /src/getchar.c
parentb12db9f92ea74039bb0b4110add4232f0bf338ea (diff)
updated for version 7.4.552v7.4.552
Problem: Langmap applies to Insert mode expression mappings. Solution: Check for Insert mode. (Daniel Hahler)
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index c9ee4d0510..174cfa892f 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -2145,7 +2145,7 @@ vgetorpeek(advance)
nolmaplen = 2;
else
{
- LANGMAP_ADJUST(c1, TRUE);
+ LANGMAP_ADJUST(c1, (State & INSERT) == 0);
nolmaplen = 0;
}
#endif