4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: search() and searchpos() don't use match under cursor at start of
12 line when using 'bc' flags. (Viktor Kojouharov)
13 Solution: Don't go to the previous line when the 'c' flag is present.
14 Also fix that "j" doesn't move the cursor to the right column.
15 Files: src/eval.c, src/search.c
18 *** ../vim-7.1.024/src/eval.c Tue Jun 19 17:23:46 2007
19 --- src/eval.c Thu Jul 5 21:16:31 2007
23 /* If 'n' flag is used: restore cursor position. */
24 if (flags & SP_NOMOVE)
25 curwin->w_cursor = save_cursor;
27 + curwin->w_set_curswant = TRUE;
31 *** ../vim-7.1.024/src/search.c Tue Jul 10 13:07:08 2007
32 --- src/search.c Thu Jul 5 21:18:55 2007
36 * Start searching in current line, unless searching backwards and
39 ! if (dir == BACKWARD && start_pos.col == 0)
42 at_first_line = FALSE;
45 * Start searching in current line, unless searching backwards and
47 + * If we are searching backwards, in column 0, and not including the
48 + * current position, gain some efficiency by skipping back a line.
49 + * Otherwise begin the search in the current line.
51 ! if (dir == BACKWARD && start_pos.col == 0
52 ! && (options & SEARCH_START) == 0)
55 at_first_line = FALSE;
56 *** ../vim-7.1.024/src/version.c Tue Jul 10 13:07:08 2007
57 --- src/version.c Tue Jul 10 13:26:13 2007
61 { /* Add new patch number below this line */
67 SIGFUN -- signature too funny (core dumped)
69 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
70 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
71 \\\ download, build and distribute -- http://www.A-A-P.org ///
72 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///