vim-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().

25281634cd
This commit is contained in:
Michael Ennen
2016-05-22 01:25:36 -07:00
parent 02e6914a93
commit 40e7efe91c
7 changed files with 45 additions and 12 deletions

View File

@@ -1757,7 +1757,8 @@ static int vgetorpeek(int advance)
if (c1 == K_SPECIAL)
nolmaplen = 2;
else {
LANGMAP_ADJUST(c1, (State & (CMDLINE | INSERT)) == 0);
LANGMAP_ADJUST(c1, (State & (CMDLINE | INSERT)) == 0
&& get_real_state() != SELECTMODE);
nolmaplen = 0;
}
/* First try buffer-local mappings. */