Hi Alex,
2017-11-30(Thu) 0:34:14 UTC+9 Alex:
> Selecting several numbers followed by an empty line and then using CTRL-A/X
> can result in only some of them being incremented/decremented. v_g_CTRL-A/X
> shows similar behaviour.
>
> Input to reproduce:
>
> 10i0<CR><Esc>vgg<C-A>
>
> Result:
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 0
> 0
> 0
>
>
>
> I've reproduced this on MSYS2 on Windows using version 8.0.1305 and in gvim
> on Windows using version 8.0.586, both with vim -N -u NONE.
Could you try the attached patch?
You can get the patch from thread of vim_dev ML below.
https://groups.google.com/d/msg/vim_dev/uoA9Q9nARn8/uSaydLK9DgAJ
--
Best regards,
Hirohito Higashi (h_east)
--
--
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/d/optout.
diff --git a/src/ops.c b/src/ops.c
index e366903..0209334 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -5433,7 +5433,7 @@ op_addsub(
}
else /* oap->motion_type == MCHAR */
{
- if (!oap->inclusive)
+ if (pos.lnum == oap->start.lnum && !oap->inclusive)
dec(&(oap->end));
length = (colnr_T)STRLEN(ml_get(pos.lnum));
pos.col = 0;