mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.773
Problem: 'langmap' is used in command-line mode when checking for mappings. Issue 376. Solution: Do not use 'langmap' in command-line mode. (Larry Velazquez)
This commit is contained in:
parent
5c5c9801b1
commit
ae94b7718a
@ -2145,7 +2145,8 @@ vgetorpeek(advance)
|
|||||||
nolmaplen = 2;
|
nolmaplen = 2;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LANGMAP_ADJUST(c1, (State & INSERT) == 0);
|
LANGMAP_ADJUST(c1,
|
||||||
|
(State & (CMDLINE | INSERT)) == 0);
|
||||||
nolmaplen = 0;
|
nolmaplen = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -28,9 +28,18 @@ GV
|
|||||||
:inoremap { FAIL_ilangmap
|
:inoremap { FAIL_ilangmap
|
||||||
:set langmap=+{ langnoremap
|
:set langmap=+{ langnoremap
|
||||||
o+
|
o+
|
||||||
: " expr mapping with langmap
|
:" Insert-mode expr mapping with langmap
|
||||||
:inoremap <expr> { "FAIL_iexplangmap"
|
:inoremap <expr> { "FAIL_iexplangmap"
|
||||||
o+
|
o+
|
||||||
|
:" langmap should not get remapped in Command-line mode
|
||||||
|
:cnoremap { FAIL_clangmap
|
||||||
|
:call append(line('$'), '+')
|
||||||
|
:cunmap {
|
||||||
|
:" Command-line mode expr mapping with langmap
|
||||||
|
:cnoremap <expr> { "FAIL_cexplangmap"
|
||||||
|
:call append(line('$'), '+')
|
||||||
|
:cunmap {
|
||||||
|
:"
|
||||||
:" issue #212 (feedkeys insert mapping at current position)
|
:" issue #212 (feedkeys insert mapping at current position)
|
||||||
:nnoremap . :call feedkeys(".", "in")<cr>
|
:nnoremap . :call feedkeys(".", "in")<cr>
|
||||||
:/^a b
|
:/^a b
|
||||||
|
@ -8,3 +8,5 @@ TEST2: CTRL-C |<ctrl-c>A|
|
|||||||
vmap works
|
vmap works
|
||||||
+
|
+
|
||||||
+
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
773,
|
||||||
/**/
|
/**/
|
||||||
772,
|
772,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user