4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: ":?foo?" matches in current line since patch 7.1.025. (A.Politz)
12 Solution: Remove the SEARCH_START flag.
13 Files: src/ex_docmd.c, src/search.c
16 *** ../vim-7.1.269/src/ex_docmd.c Tue Feb 26 21:29:06 2008
17 --- src/ex_docmd.c Sun Mar 2 20:50:43 2008
20 curwin->w_cursor.col = 0;
22 if (!do_search(NULL, c, cmd, 1L,
23 ! SEARCH_HIS + SEARCH_MSG + SEARCH_START,
26 curwin->w_cursor = pos;
29 curwin->w_cursor.col = 0;
31 if (!do_search(NULL, c, cmd, 1L,
32 ! SEARCH_HIS | SEARCH_MSG, NULL))
34 curwin->w_cursor = pos;
39 if (searchit(curwin, curbuf, &pos,
40 *cmd == '?' ? BACKWARD : FORWARD,
42 ! SEARCH_MSG + SEARCH_START,
43 i, (linenr_T)0, NULL) != FAIL)
48 if (searchit(curwin, curbuf, &pos,
49 *cmd == '?' ? BACKWARD : FORWARD,
50 ! (char_u *)"", 1L, SEARCH_MSG,
51 i, (linenr_T)0, NULL) != FAIL)
54 *** ../vim-7.1.269/src/search.c Wed Feb 20 13:41:14 2008
55 --- src/search.c Sun Mar 2 22:00:50 2008
61 ! if (options & SEARCH_START)
64 /* Watch out for the "col" being MAXCOL - 2, used in a closed fold. */
69 ! /* When not accepting a match at the start position set "extra_col" to a
70 ! * non-zero value. Don't do that when starting at MAXCOL, since MAXCOL +
72 ! if ((options & SEARCH_START) || pos->col == MAXCOL)
75 /* Watch out for the "col" being MAXCOL - 2, used in a closed fold. */
76 *** ../vim-7.1.269/src/version.c Sun Mar 9 16:45:16 2008
77 --- src/version.c Mon Mar 10 21:32:07 2008
81 { /* Add new patch number below this line */
87 hundred-and-one symptoms of being an internet addict:
88 102. When filling out your driver's license application, you give
91 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
92 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
93 \\\ download, build and distribute -- http://www.A-A-P.org ///
94 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///