• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisionb686fb4898d1fd8579e5bf61f36c2a08fee85a20 (tree)
Zeit2007-07-10 20:28:55
Autorvimboss
Commitervimboss

Log Message

updated for version 7.1-025

Ändern Zusammenfassung

Diff

diff -r a33e606ceea6 -r b686fb4898d1 src/eval.c
--- a/src/eval.c Tue Jul 10 11:09:36 2007 +0000
+++ b/src/eval.c Tue Jul 10 11:28:55 2007 +0000
@@ -13925,6 +13925,8 @@
1392513925 /* If 'n' flag is used: restore cursor position. */
1392613926 if (flags & SP_NOMOVE)
1392713927 curwin->w_cursor = save_cursor;
13928+ else
13929+ curwin->w_set_curswant = TRUE;
1392813930 theend:
1392913931 p_ws = save_p_ws;
1393013932
diff -r a33e606ceea6 -r b686fb4898d1 src/search.c
--- a/src/search.c Tue Jul 10 11:09:36 2007 +0000
+++ b/src/search.c Tue Jul 10 11:28:55 2007 +0000
@@ -573,8 +573,12 @@
573573 /*
574574 * Start searching in current line, unless searching backwards and
575575 * we're in column 0.
576+ * If we are searching backwards, in column 0, and not including the
577+ * current position, gain some efficiency by skipping back a line.
578+ * Otherwise begin the search in the current line.
576579 */
577- if (dir == BACKWARD && start_pos.col == 0)
580+ if (dir == BACKWARD && start_pos.col == 0
581+ && (options & SEARCH_START) == 0)
578582 {
579583 lnum = pos->lnum - 1;
580584 at_first_line = FALSE;
diff -r a33e606ceea6 -r b686fb4898d1 src/version.c
--- a/src/version.c Tue Jul 10 11:09:36 2007 +0000
+++ b/src/version.c Tue Jul 10 11:28:55 2007 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 25,
671+/**/
670672 24,
671673 /**/
672674 23,
Show on old repository browser