commit | c68c72ea7bbc92ce7cc2c746ce6408dc6cbe06cd | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Dec 14 00:43:54 2014 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Dec 14 00:43:54 2014 +0100 |
tree | 847a39ac093febb4817bc4371d32b61327e0606b | |
parent | b12db9f92ea74039bb0b4110add4232f0bf338ea [diff] [blame] |
updated for version 7.4.552 Problem: Langmap applies to Insert mode expression mappings. Solution: Check for Insert mode. (Daniel Hahler)
diff --git a/src/getchar.c b/src/getchar.c index c9ee4d0..174cfa8 100644 --- a/src/getchar.c +++ b/src/getchar.c
@@ -2145,7 +2145,7 @@ nolmaplen = 2; else { - LANGMAP_ADJUST(c1, TRUE); + LANGMAP_ADJUST(c1, (State & INSERT) == 0); nolmaplen = 0; } #endif