Hi Bram and Vimmers, 2013/11/19(Tue) 4:09:39 UTC+9 Bram Moolenaar: > Hirohito Higashi wrote: > > > > > Hi Bram, Christian and Vimmers, > > > > > > I received a bug report from Taro Muraoka. > > > This bug occurd in 7.4.085 or later. > > > > > > -------- > > > How to reproduce. > > > > > > 1. Open new buffer and input below and cursor on the '2'. > > > > > > 123 > > > 4567 > > > > > > 2. Input <C-v>j$Aab<Esc> > > > > > > -------- > > > Actual behavior > > > - "23" in the second line is strange obviously. > > > > > > 123ab > > > 45623ab7 > > > > > > -------- > > > Expected behavior > > > - I don't know :-) > > > But I think that may be to bypass the process that was added in 7.4.085 > > when > > > used '$' in visual mode. > > > > > > I wrote a patch. > > > Please check. > > > > Thanks for finding and fixing this problem. > > > > It would be good to also have a test for this. With a test it would not > > have gone wrong previously.
I added some tests to test39. (I attached only test39.*) Please check this. Best regards, Hirohito Higashi -- -- 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 -r 58bcf8fa172f src/testdir/test39.in --- a/src/testdir/test39.in Sun Nov 17 20:32:54 2013 +0100 +++ b/src/testdir/test39.in Tue Nov 19 13:06:38 2013 +0900 @@ -23,6 +23,18 @@ /^aaaa/ :exe ":norm! l\<C-V>jjjlllI\<Right>\<Right> \<Esc>" :/^aa/,/^$/w >> test.out +:" Test for Visual block was created with the last <C-v>$ +/^A23$/ +:exe ":norm! l\<C-V>j$Aab\<Esc>" +:.,/^$/w >> test.out +:" Test for Visual block was created with the middle <C-v>$ (1) +/^B23$/ +:exe ":norm! l\<C-V>j$hAab\<Esc>" +:.,/^$/w >> test.out +:" Test for Visual block was created with the middle <C-v>$ (2) +/^C23$/ +:exe ":norm! l\<C-V>j$hhAab\<Esc>" +:.,/^$/w >> test.out :" gUe must uppercase a whole word, also when ? changes to SS Gothe youtu?euu endYpk0wgUe :" gUfx must uppercase until x, inclusive. @@ -49,6 +61,15 @@ cccccc dddddd +A23 +4567 + +B23 +4567 + +C23 +4567 + abcdefghijklm abcdefghijklm abcdefghijklm diff -r 58bcf8fa172f src/testdir/test39.ok --- a/src/testdir/test39.ok Sun Nov 17 20:32:54 2013 +0100 +++ b/src/testdir/test39.ok Tue Nov 19 13:06:38 2013 +0900 @@ -8,6 +8,15 @@ ccc ccc ddd ddd +A23ab +4567ab + +B23 ab +4567ab + +C23ab +456ab7 + the YOUTUSSEUU end - yOUSSTUSSEXu - THE YOUTUSSEUU END
