From 25281634cda03ce302aaf9f906a9520b5f81f91e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 21 Jan 2016 23:32:32 +0100 Subject: patch 7.4.1150 Problem: 'langmap' applies to the first character typed in Select mode. (David Watson) Solution: Check for SELECTMODE. (Christian Brabandt, closes #572) Add the 'x' flag to feedkeys(). --- src/getchar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/getchar.c') diff --git a/src/getchar.c b/src/getchar.c index 70829e18ef..5b5eab3871 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -2149,7 +2149,8 @@ vgetorpeek(advance) else { LANGMAP_ADJUST(c1, - (State & (CMDLINE | INSERT)) == 0); + (State & (CMDLINE | INSERT)) == 0 + && get_real_state() != SELECTMODE); nolmaplen = 0; } #endif -- cgit v1.2.3