Hi glts!
On Di, 19 Mär 2013, glts wrote:
> It is possible to give an arbitrary number of counts and "motion force"
> (v V <C-V>) after an operator.
>
> For example, in the current Vim 7.3.874, the following is a valid normal
> mode command:
>
> d2v45V108v3<C-V>8j
>
> This doesn't make any sense. I think Vim should beep and abort in these
> cases, as it does for other invalid command combinations.
This patch fixes it.
regards,
Christian
--
Heucheln, das Wort klingt schlecht, drum nennt man es Takt.
-- Carl Spittler
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff --git a/src/normal.c b/src/normal.c
--- a/src/normal.c
+++ b/src/normal.c
@@ -7672,7 +7672,10 @@
* characterwise, linewise, or blockwise. */
if (cap->oap->op_type != OP_NOP)
{
- cap->oap->motion_force = cap->cmdchar;
+ if (finish_op && cap->oap->motion_force != NUL)
+ clearopbeep(cap->oap);
+ else
+ cap->oap->motion_force = cap->cmdchar;
finish_op = FALSE; /* operator doesn't finish now but later */
return;
}