Hi Bram!
On Mo, 11 Jul 2011, Bram Moolenaar wrote:
> Thanks for the fix. Can you also update the test so that it fails
> without this patch?
Sure.
regards,
Christian
--
--
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/search.c b/src/search.c
--- a/src/search.c
+++ b/src/search.c
@@ -1585,7 +1585,7 @@
/* Force a move of at least one char, so ";" and "," will move the
* cursor, even if the cursor is right in front of char we are looking
* at. */
- if (vim_strchr(p_cpo, CPO_SCOLON) == NULL && count == 1)
+ if (vim_strchr(p_cpo, CPO_SCOLON) == NULL && count == 1 && t_cmd)
stop = FALSE;
}
diff --git a/src/testdir/test81.in b/src/testdir/test81.in
--- a/src/testdir/test81.in
+++ b/src/testdir/test81.in
@@ -5,6 +5,8 @@
:set cpo-=;
/firstline/
j0tt;D
+0fz;D
+$Fy;D
$Ty;D:set cpo+=;
j0tt;;D
$Ty;;D:?firstline?+1,$w! test.out
@@ -13,6 +15,8 @@
firstline
aaa two three four
+ zzz
+yyy
bbb yee yoo four
ccc two three four
ddd yee yoo four
diff --git a/src/testdir/test81.ok b/src/testdir/test81.ok
--- a/src/testdir/test81.ok
+++ b/src/testdir/test81.ok
@@ -1,4 +1,6 @@
aaa two
+ z
+y
bbb y
ccc
ddd yee y