mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.1356: cannot cancel "gr" with Esc
Problem: Cannot cancel "gr" with Esc. Solution: Make "gr<Esc>" do nothing. (closes #12064)
This commit is contained in:
@@ -515,7 +515,8 @@ normal_cmd_get_more_chars(
|
||||
cap->nchar = cap->extra_char;
|
||||
idx = find_command(cap->cmdchar);
|
||||
}
|
||||
else if ((cap->nchar == 'n' || cap->nchar == 'N') && cap->cmdchar == 'g')
|
||||
else if ((cap->nchar == 'n' || cap->nchar == 'N')
|
||||
&& cap->cmdchar == 'g')
|
||||
cap->oap->op_type = get_op_type(*cp, NUL);
|
||||
else if (*cp == Ctrl_BSL)
|
||||
{
|
||||
@@ -5024,7 +5025,7 @@ nv_vreplace(cmdarg_T *cap)
|
||||
return;
|
||||
}
|
||||
|
||||
if (checkclearopq(cap->oap))
|
||||
if (checkclearopq(cap->oap) || cap->extra_char == ESC)
|
||||
return;
|
||||
|
||||
if (!curbuf->b_p_ma)
|
||||
|
Reference in New Issue
Block a user