File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff 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 /*
Original file line number Diff line number Diff line change @@ -719,6 +719,8 @@ static char *(features[]) =
719719
720720static int included_patches [] =
721721{ /* Add new patch number below this line */
722+ /**/
723+ 704 ,
722724/**/
723725 703 ,
724726/**/
You can’t perform that action at this time.
0 commit comments