diff 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
line wrap: on
line diff
--- 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