]>
Commit | Line | Data |
---|---|---|
ad28a8ff AG |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.1.024 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.024 | |
11 | Problem: Using a pointer that has become invalid. (Chris Monson) | |
12 | Solution: Obtain the line pointer again after we looked at another line. | |
13 | Files: src/search.c | |
14 | ||
15 | ||
16 | *** ../vim-7.1.023/src/search.c Tue Jul 10 12:36:51 2007 | |
17 | --- src/search.c Thu Jul 5 21:18:55 2007 | |
18 | *************** | |
19 | *** 2124,2129 **** | |
20 | --- 2128,2136 ---- | |
21 | else if (!backwards) | |
22 | inquote = TRUE; | |
23 | } | |
24 | + | |
25 | + /* ml_get() only keeps one line, need to get linep again */ | |
26 | + linep = ml_get(pos.lnum); | |
27 | } | |
28 | } | |
29 | } | |
30 | *** ../vim-7.1.023/src/version.c Tue Jul 10 12:36:51 2007 | |
31 | --- src/version.c Tue Jul 10 13:06:02 2007 | |
32 | *************** | |
33 | *** 668,669 **** | |
34 | --- 668,671 ---- | |
35 | { /* Add new patch number below this line */ | |
36 | + /**/ | |
37 | + 24, | |
38 | /**/ | |
39 | ||
40 | -- | |
41 | Q: Why does /dev/null accept only integers? | |
42 | A: You can't sink a float. | |
43 | ||
44 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
45 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
46 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
47 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |