summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-07-10 11:28:55 +0000
committerBram Moolenaar <Bram@vim.org>2007-07-10 11:28:55 +0000
commit7a42fa3cb7b61dcfa63a9083f8840dd38ead272b (patch)
tree1221df8b00aad3ed6ddeafdfaa664f7ee8ce0604
parentaec1179e5e5e2b575547b0050dcf77a44af1c9f9 (diff)
updated for version 7.1-025v7.1.025
-rw-r--r--src/eval.c2
-rw-r--r--src/search.c6
-rw-r--r--src/version.c2
3 files changed, 9 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index ac4dc1bb51..d55ba10ae9 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -13925,6 +13925,8 @@ search_cmn(argvars, match_pos, flagsp)
/* If 'n' flag is used: restore cursor position. */
if (flags & SP_NOMOVE)
curwin->w_cursor = save_cursor;
+ else
+ curwin->w_set_curswant = TRUE;
theend:
p_ws = save_p_ws;
diff --git a/src/search.c b/src/search.c
index 3836db7162..ee1aef597a 100644
--- a/src/search.c
+++ b/src/search.c
@@ -573,8 +573,12 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum)
/*
* Start searching in current line, unless searching backwards and
* we're in column 0.
+ * If we are searching backwards, in column 0, and not including the
+ * current position, gain some efficiency by skipping back a line.
+ * Otherwise begin the search in the current line.
*/
- if (dir == BACKWARD && start_pos.col == 0)
+ if (dir == BACKWARD && start_pos.col == 0
+ && (options & SEARCH_START) == 0)
{
lnum = pos->lnum - 1;
at_first_line = FALSE;
diff --git a/src/version.c b/src/version.c
index 4a3f666eb4..83ff53d967 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 25,
+/**/
24,
/**/
23,