[patch] fix behavior of dot-repeat after visual block-wise ctrl-A/ctrl-X

54 views
Skip to first unread message

Ozaki Kiichi

unread,
Oct 24, 2015, 5:20:01 AM10/24/15
to vim_dev
Hi.

After visual block-wise Ctrl-A (Ctrl-X), dot-repeat doesn't work properly.

[repro steps]

vim -u NONE -N

-------------
1 23
4 56
-------------

type: ggf2<C-V>gl<C-A>

-------------
1 24
4 57
-------------

and type: .
(dot-repeat)

expected:

-------------
1 25
4 58
-------------

actual:

-------------
2 24
5 57
-------------

It appears that content of redobuff is incorrect.

expected: <C-V>1j1<space>1<C-A>
actual: <C-V>1j0<space>1<C-A>

Thank you.
- Ozaki Kiichi

fix-visualblock-increment-redo.patch

Ozaki Kiichi

unread,
Oct 24, 2015, 5:28:39 AM10/24/15
to vim_dev
typo, sorry.

- type: ggf2<C-V>gl<C-A>
+ type: ggf2<C-V>jl<C-A>

Bram Moolenaar

unread,
Oct 25, 2015, 2:01:42 PM10/25/15
to Ozaki Kiichi, vim_dev
Thanks!

--
hundred-and-one symptoms of being an internet addict:
46. Your wife makes a new rule: "The computer cannot come to bed."

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

h_east

unread,
Dec 5, 2015, 5:55:39 PM12/5/15
to vim_dev, gclien...@gmail.com
Hi Bram,

2015-10-26(Mon) 3:01:42 UTC+9 Bram Moolenaar:

Reported behavior is bug obviously, I was wondering if you could include this patch.

In todo:
> Patch to fix "." after CTRL-A in Visual block mode. (Ozaki Kiichi, 2015 Oct
24)

--
Best regards,
Hirohito Higashi (a.k.a h_east)

Reply all
Reply to author
Forward
0 new messages