[patch] text-objects selection with cpo-M does not correct

89 views
Skip to first unread message

h_east

unread,
Mar 8, 2015, 12:07:44 PM3/8/15
to vim...@googlegroups.com
Hi Bram and list,

How to reproduce:
$ cat test.txt
(red \(blue) green)

$ vim -N -u NONE -c "set cpo+=M" test.txt

0
/re
vi) " 'red \(blue) green' selected --> OK.
v0
/blue
vi) " 'red \(blue) green' selected --> NG. It should selected 'blue'
v0
/green
vi) " Not selected anything --> NG. It should selected 'red \(blue) green'


I wrote a patch and test.
Please check this.

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

Bram Moolenaar

unread,
Mar 8, 2015, 2:50:14 PM3/8/15
to h_east, vim...@googlegroups.com

Hirohito Higashi wrote:

> Hi Bram and list,
>
> How to reproduce:
> $ cat test.txt
> (red \(blue) green)
>
> $ vim -N -u NONE -c "set cpo+=M" test.txt
>
> 0
> /re
> vi) " 'red \(blue) green' selected --> OK.
> v0
> /blue
> vi) " 'red \(blue) green' selected --> NG. It should selected 'blue'
> v0
> /green
> vi) " Not selected anything --> NG. It should selected 'red \(blue) green'
>
>
> I wrote a patch and test.
> Please check this.

Thanks!


--
Apologies for taking up the bandwidth with the apology. Anything else I
can apologise for ...... er no can't think of anything, sorry about that.
Andy Hunt (Member of British Olympic Apology Squad)

/// 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 ///
Reply all
Reply to author
Forward
0 new messages