]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.083
- initial import
[packages/vim.git] / 6.2.083
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.083
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.083
11 Problem:    When a compiler uses ^^^^ to mark a word the information is not
12             visible in the quickfix window. (Srikanth Sankaran)
13 Solution:   Don't remove the indent for a line that is not recognized as an
14             error message.
15 Files:      src/quickfix.c
16
17
18 *** ../vim-6.2.082/src/quickfix.c       Fri May 30 09:43:51 2003
19 --- src/quickfix.c      Fri Aug 29 20:45:08 2003
20 ***************
21 *** 1224,1230 ****
22                     (char *)qf_types(qf_ptr->qf_type, qf_ptr->qf_nr));
23             /* Add the message, skipping leading whitespace and newlines. */
24             len = (int)STRLEN(IObuff);
25 !           qf_fmt_text(qf_ptr->qf_text, IObuff + len, IOSIZE - len);
26   
27             /* Output the message.  Overwrite to avoid scrolling when the 'O'
28              * flag is present in 'shortmess'; But when not jumping, print the
29 --- 1224,1230 ----
30                     (char *)qf_types(qf_ptr->qf_type, qf_ptr->qf_nr));
31             /* Add the message, skipping leading whitespace and newlines. */
32             len = (int)STRLEN(IObuff);
33 !           qf_fmt_text(skipwhite(qf_ptr->qf_text), IObuff + len, IOSIZE - len);
34   
35             /* Output the message.  Overwrite to avoid scrolling when the 'O'
36              * flag is present in 'shortmess'; But when not jumping, print the
37 ***************
38 *** 1347,1354 ****
39                 sprintf((char *)IObuff + STRLEN(IObuff), "%s: ",
40                                   (char *)qf_types(qfp->qf_type, qfp->qf_nr));
41                 msg_puts_attr(IObuff, hl_attr(HLF_N));
42 !               /* Remove newlines and leading whitespace from the text. */
43 !               qf_fmt_text(qfp->qf_text, IObuff, IOSIZE);
44                 msg_prt_line(IObuff);
45                 out_flush();            /* show one line at a time */
46                 need_return = TRUE;
47 --- 1347,1358 ----
48                 sprintf((char *)IObuff + STRLEN(IObuff), "%s: ",
49                                   (char *)qf_types(qfp->qf_type, qfp->qf_nr));
50                 msg_puts_attr(IObuff, hl_attr(HLF_N));
51 !               /* Remove newlines and leading whitespace from the text.
52 !                * For an unrecognized line keep the indent, the compiler may
53 !                * mark a word with ^^^^. */
54 !               qf_fmt_text((fname != NULL || qfp->qf_lnum != 0)
55 !                                    ? skipwhite(qfp->qf_text) : qfp->qf_text,
56 !                                                             IObuff, IOSIZE);
57                 msg_prt_line(IObuff);
58                 out_flush();            /* show one line at a time */
59                 need_return = TRUE;
60 ***************
61 *** 1392,1398 ****
62       int               bufsize;
63   {
64       int               i;
65 !     char_u    *p = skipwhite(text);
66   
67       for (i = 0; *p != NUL && i < bufsize - 1; ++i)
68       {
69 --- 1396,1402 ----
70       int               bufsize;
71   {
72       int               i;
73 !     char_u    *p = text;
74   
75       for (i = 0; *p != NUL && i < bufsize - 1; ++i)
76       {
77 ***************
78 *** 1852,1858 ****
79             IObuff[len++] = '|';
80             IObuff[len++] = ' ';
81   
82 !           qf_fmt_text(qfp->qf_text, IObuff + len, IOSIZE - len);
83   
84             if (ml_append(lnum, IObuff, (colnr_T)STRLEN(IObuff) + 1, FALSE)
85                                                                       == FAIL)
86 --- 1856,1866 ----
87             IObuff[len++] = '|';
88             IObuff[len++] = ' ';
89   
90 !           /* Remove newlines and leading whitespace from the text.
91 !            * For an unrecognized line keep the indent, the compiler may
92 !            * mark a word with ^^^^. */
93 !           qf_fmt_text(len > 3 ? skipwhite(qfp->qf_text) : qfp->qf_text,
94 !                                                 IObuff + len, IOSIZE - len);
95   
96             if (ml_append(lnum, IObuff, (colnr_T)STRLEN(IObuff) + 1, FALSE)
97                                                                       == FAIL)
98 *** ../vim-6.2.082/src/version.c        Thu Sep 11 21:11:22 2003
99 --- src/version.c       Thu Sep 11 21:12:59 2003
100 ***************
101 *** 632,633 ****
102 --- 632,635 ----
103   {   /* Add new patch number below this line */
104 + /**/
105 +     83,
106   /**/
107
108 -- 
109 Biting someone with your natural teeth is "simple assault," while biting
110 someone with your false teeth is "aggravated assault."
111                 [real standing law in Louisana, United States of America]
112
113  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
114 ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
115 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
116  \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///
This page took 0.036113 seconds and 3 git commands to generate.