]>
Commit | Line | Data |
---|---|---|
9b411fd1 ER |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.0.188 | |
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.0.188 (after 7.0.186) | |
11 | Problem: Warning for wrong pointer type. | |
12 | Solution: Add a type cast. | |
13 | Files: src/search.c | |
14 | ||
15 | ||
16 | *** ../vim-7.0.187/src/search.c Tue Jan 16 16:00:38 2007 | |
17 | --- src/search.c Tue Jan 16 21:16:01 2007 | |
18 | *************** | |
19 | *** 814,820 **** | |
20 | { | |
21 | /* 'e' offset may put us just below the last line */ | |
22 | if (pos->lnum > buf->b_ml.ml_line_count) | |
23 | ! ptr = ""; | |
24 | else | |
25 | ptr = ml_get_buf(buf, pos->lnum, FALSE); | |
26 | pos->col -= (*mb_head_off)(ptr, ptr + pos->col); | |
27 | --- 814,820 ---- | |
28 | { | |
29 | /* 'e' offset may put us just below the last line */ | |
30 | if (pos->lnum > buf->b_ml.ml_line_count) | |
31 | ! ptr = (char_u *)""; | |
32 | else | |
33 | ptr = ml_get_buf(buf, pos->lnum, FALSE); | |
34 | pos->col -= (*mb_head_off)(ptr, ptr + pos->col); | |
35 | *** ../vim-7.0.187/src/version.c Tue Jan 16 21:31:38 2007 | |
36 | --- src/version.c Tue Jan 16 21:33:05 2007 | |
37 | *************** | |
38 | *** 668,669 **** | |
39 | --- 668,671 ---- | |
40 | { /* Add new patch number below this line */ | |
41 | + /**/ | |
42 | + 188, | |
43 | /**/ | |
44 | ||
45 | -- | |
46 | Due knot trussed yore spell chequer two fined awl miss steaks. | |
47 | ||
48 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
49 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
50 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
51 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |