Skip to content

Commit adaca3b

Browse files
committed
updated for version 7.3.704
Problem: Repeating "cgn" does not always work correctly. Solution: Also fetch the operator character. (Christian Brabandt)
1 parent dccfa82 commit adaca3b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/normal.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,8 +960,11 @@ normal_cmd(oap, toplevel)
960960
#ifdef FEAT_CMDL_INFO
961961
need_flushbuf |= add_to_showcmd(ca.nchar);
962962
#endif
963+
/* For "gn" from redo, need to get one more char to determine the
964+
* operator */
963965
if (ca.nchar == 'r' || ca.nchar == '\'' || ca.nchar == '`'
964-
|| ca.nchar == Ctrl_BSL)
966+
|| ca.nchar == Ctrl_BSL
967+
|| ((ca.nchar == 'n' || ca.nchar == 'N') && !stuff_empty()))
965968
{
966969
cp = &ca.extra_char; /* need to get a third character */
967970
if (ca.nchar != 'r')
@@ -1083,6 +1086,8 @@ normal_cmd(oap, toplevel)
10831086
ca.nchar = ca.extra_char;
10841087
idx = find_command(ca.cmdchar);
10851088
}
1089+
else if (ca.nchar == 'n' || ca.nchar == 'N')
1090+
ca.oap->op_type = get_op_type(*cp, NUL);
10861091
else if (*cp == Ctrl_BSL)
10871092
{
10881093
long towait = (p_ttm >= 0 ? p_ttm : p_tm);
@@ -8009,7 +8014,7 @@ nv_g_cmd(cap)
80098014
#ifdef FEAT_VISUAL
80108015
if (!current_search(cap->count1, cap->nchar == 'n'))
80118016
#endif
8012-
beep_flush();
8017+
clearopbeep(oap);
80138018
break;
80148019

80158020
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ static char *(features[]) =
719719

720720
static int included_patches[] =
721721
{ /* Add new patch number below this line */
722+
/**/
723+
704,
722724
/**/
723725
703,
724726
/**/

0 commit comments

Comments
 (0)