From 7afea82f507c0614a22b27d592adf65f5656c2df Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 24 Apr 2013 18:34:45 +0200 Subject: [PATCH] =?UTF-8?q?updated=20for=20version=207.3.918=20Problem:=20?= =?UTF-8?q?=20=20=20Repeating=20an=20Ex=20command=20after=20using=20a=20Vi?= =?UTF-8?q?sual=20motion=20does=20not=20work.=20Solution:=20=20=20Check=20?= =?UTF-8?q?for=20an=20Ex=20command=20being=20used.=20(David=20B=C3=BCrgin)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/normal.c | 11 +++++++---- src/version.c | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/normal.c b/src/normal.c index 181dbcb35f..879d5c3588 100644 --- a/src/normal.c +++ b/src/normal.c @@ -1504,11 +1504,14 @@ do_pending_operator(cap, old_col, gui_yank) } #endif - /* only redo yank when 'y' flag is in 'cpoptions' */ - /* never redo "zf" (define fold) */ + /* Only redo yank when 'y' flag is in 'cpoptions'. */ + /* Never redo "zf" (define fold). */ if ((vim_strchr(p_cpo, CPO_YANK) != NULL || oap->op_type != OP_YANK) #ifdef FEAT_VISUAL - && (!VIsual_active || oap->motion_force) + && ((!VIsual_active || oap->motion_force) + /* Also redo Operator-pending Visual mode mappings */ + || (VIsual_active && cap->cmdchar == ':' + && oap->op_type != OP_COLON)) #endif && cap->cmdchar != 'D' #ifdef FEAT_FOLDING @@ -1797,7 +1800,7 @@ do_pending_operator(cap, old_col, gui_yank) prep_redo(oap->regname, 0L, NUL, cap->cmdchar, cap->nchar, get_op_char(oap->op_type), get_extra_op_char(oap->op_type)); - else + else if (cap->cmdchar != ':') prep_redo(oap->regname, 0L, NUL, 'v', get_op_char(oap->op_type), get_extra_op_char(oap->op_type), diff --git a/src/version.c b/src/version.c index aaa8fa794b..311dc329d2 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 918, /**/ 917, /**/