]>
Commit | Line | Data |
---|---|---|
d02ad552 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.157 | |
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 6.2.157 | |
11 | Problem: Using "%p" in 'errorformat' gives a column number that is too | |
12 | high. | |
13 | Solution: Set the flag to use the number as a virtual column. (Lefteris | |
14 | Koutsoloukas) | |
15 | Files: src/quickfix.c | |
16 | ||
17 | ||
18 | *** ../vim-6.2.156/src/quickfix.c Thu Sep 11 21:15:02 2003 | |
19 | --- src/quickfix.c Wed Dec 24 13:39:46 2003 | |
20 | *************** | |
21 | *** 476,482 **** | |
22 | --- 476,486 ---- | |
23 | if ((i = (int)fmt_ptr->addr[6]) > 0) /* %r */ | |
24 | tail = regmatch.startp[i]; | |
25 | if ((i = (int)fmt_ptr->addr[7]) > 0) /* %p */ | |
26 | + { | |
27 | col = (int)(regmatch.endp[i] - regmatch.startp[i] + 1); | |
28 | + if (*((char_u *)regmatch.startp[i]) != TAB) | |
29 | + use_virt_col = TRUE; | |
30 | + } | |
31 | if ((i = (int)fmt_ptr->addr[8]) > 0) /* %v */ | |
32 | { | |
33 | col = (int)atol((char *)regmatch.startp[i]); | |
34 | *** ../vim-6.2.156/src/version.c Mon Dec 29 20:14:44 2003 | |
35 | --- src/version.c Mon Dec 29 20:20:46 2003 | |
36 | *************** | |
37 | *** 639,640 **** | |
38 | --- 639,642 ---- | |
39 | { /* Add new patch number below this line */ | |
40 | + /**/ | |
41 | + 157, | |
42 | /**/ | |
43 | ||
44 | -- | |
45 | I AM THANKFUL... | |
46 | ...for a lawn that needs mowing, windows that need cleaning | |
47 | and gutters that need fixing because it means I have a home. | |
48 | ||
49 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
50 | /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ | |
51 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
52 | \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// |