Hi Bram!
On Mi, 03 Okt 2012, Bram Moolenaar wrote:
>
> Christian Brabandt wrote:
>
> > On Mon, October 1, 2012 23:37, Ben Fritz wrote:
> > > Consider the text:
> > >
> > > my very excellent mother just served us nachos
> > >
> > > Launching Vim with:
> > >
> > > gvim -N -u NONE -i NONE
> > >
> > > Start with the cursor at the beginning of the line. Search for "mother".
> > > Go back to the beginning of the line. Type cgnmongoose<Esc> and the line
> > > becomes:
> > >
> > > my very excellent mongoose just served us nachos
> > >
> > > Undo the change, and go to the end of the line. Type cgNmongoose<Esc>
> > >
> > > If 'selection' is "inclusive", the result is the same.
> > >
> > > If 'selection' is "exclusive", instead I get:
> > >
> > > my very excellent mongooser just served us nachos
> > >
> >
> > Thanks. Good description. Attached patch fixes it.
>
> Thanks for the quick fix! I'll include it.
>
> I should ask for a test though...
Attached.
regards,
Christian
--
Der Staat an und für sich ist das sittlichste Ganze, die
Verwirklichung der Freiheit; und es ist absoluter Zweck der Vernunft,
das die Freiheit wirklich sei.
-- Georg Wilhelm Friedrich Hegel
--
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
diff --git a/src/testdir/test53.in b/src/testdir/test53.in
--- a/src/testdir/test53.in
+++ b/src/testdir/test53.in
@@ -42,6 +42,9 @@
gnd$h/\zs
gnd/[u]niquepattern/s
vlgnd
+/mother
+:set selection=exclusive
+$cgNmongoose
:/^start:/,/^end:/wq! test.out
ENDTEST
@@ -69,4 +72,5 @@
zero width pattern
delete first and last chars
uniquepattern uniquepattern
+my very excellent mother just served us nachos
end:
diff --git a/src/testdir/test53.ok b/src/testdir/test53.ok
--- a/src/testdir/test53.ok
+++ b/src/testdir/test53.ok
@@ -25,4 +25,5 @@
zerowidth pattern
elete first and last char
uniquepattern
+my very excellent mongoose just served us nachos
end: