comparison src/getchar.c @ 6445:c8d6dbdd1156 v7.4.552

updated for version 7.4.552 Problem: Langmap applies to Insert mode expression mappings. Solution: Check for Insert mode. (Daniel Hahler)
author Bram Moolenaar <bram@vim.org>
date Sun, 14 Dec 2014 00:43:54 +0100
parents 7844d92941fd
children ccb6962585f1
comparison
equal deleted inserted replaced
6444:855584efa63b 6445:c8d6dbdd1156
2143 #ifdef FEAT_LANGMAP 2143 #ifdef FEAT_LANGMAP
2144 if (c1 == K_SPECIAL) 2144 if (c1 == K_SPECIAL)
2145 nolmaplen = 2; 2145 nolmaplen = 2;
2146 else 2146 else
2147 { 2147 {
2148 LANGMAP_ADJUST(c1, TRUE); 2148 LANGMAP_ADJUST(c1, (State & INSERT) == 0);
2149 nolmaplen = 0; 2149 nolmaplen = 0;
2150 } 2150 }
2151 #endif 2151 #endif
2152 #ifdef FEAT_LOCALMAP 2152 #ifdef FEAT_LOCALMAP
2153 /* First try buffer-local mappings. */ 2153 /* First try buffer-local mappings. */