0
0
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:
zeertzjq
2023-02-26 14:47:24 +00:00
committed by Bram Moolenaar
parent 83ae6150bf
commit 4f026ea9f1
5 changed files with 32 additions and 28 deletions

View File

@@ -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)