0
0
mirror of https://github.com/vim/vim.git synced 2025-09-06 21:53:38 -04:00

updated for version 7.3.918

Problem:    Repeating an Ex command after using a Visual motion does not work.
Solution:   Check for an Ex command being used. (David Bürgin)
This commit is contained in:
Bram Moolenaar 2013-04-24 18:34:45 +02:00
parent 811fe63f39
commit 7afea82f50
2 changed files with 9 additions and 4 deletions

View File

@ -1504,11 +1504,14 @@ do_pending_operator(cap, old_col, gui_yank)
} }
#endif #endif
/* only redo yank when 'y' flag is in 'cpoptions' */ /* Only redo yank when 'y' flag is in 'cpoptions'. */
/* never redo "zf" (define fold) */ /* Never redo "zf" (define fold). */
if ((vim_strchr(p_cpo, CPO_YANK) != NULL || oap->op_type != OP_YANK) if ((vim_strchr(p_cpo, CPO_YANK) != NULL || oap->op_type != OP_YANK)
#ifdef FEAT_VISUAL #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 #endif
&& cap->cmdchar != 'D' && cap->cmdchar != 'D'
#ifdef FEAT_FOLDING #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, prep_redo(oap->regname, 0L, NUL, cap->cmdchar, cap->nchar,
get_op_char(oap->op_type), get_op_char(oap->op_type),
get_extra_op_char(oap->op_type)); get_extra_op_char(oap->op_type));
else else if (cap->cmdchar != ':')
prep_redo(oap->regname, 0L, NUL, 'v', prep_redo(oap->regname, 0L, NUL, 'v',
get_op_char(oap->op_type), get_op_char(oap->op_type),
get_extra_op_char(oap->op_type), get_extra_op_char(oap->op_type),

View File

@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
918,
/**/ /**/
917, 917,
/**/ /**/