4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Listing tags for Cscope doesn't always work.
12 Solution: Avoid using smgs_attr(). (Sergey Khorev)
13 Files: src/if_cscope.c
16 *** ../vim-6.2.006/src/if_cscope.c Fri May 30 23:16:45 2003
17 --- src/if_cscope.c Tue Jun 3 20:39:43 2003
21 char *globalcntx = "GLOBAL";
22 char *cntxformat = " <<%s>>";
24 + char *cstag_msg = _("Cscope tag: %s");
25 + char *csfmt_str = "%4d %6s ";
27 assert (num_matches > 0);
31 strcpy(tbuf, matches[0]);
32 ptag = strtok(tbuf, "\t");
34 ! (void)smsg_attr(hl_attr(HLF_T), (char_u *)_("Cscope tag: %s"), ptag);
39 strcpy(tbuf, matches[0]);
40 ptag = strtok(tbuf, "\t");
42 ! newsize = strlen(cstag_msg) + strlen(ptag);
43 ! buf = (char *)alloc(newsize);
47 ! (void)sprintf(buf, cstag_msg, ptag);
48 ! MSG_PUTS_ATTR(buf, hl_attr(HLF_T));
56 lno[strlen(lno)-2] = '\0'; /* ignore ;" at the end */
58 ! (void)smsg_attr(hl_attr(HLF_CM), (char_u *)"%4d %6s ", num, lno);
59 MSG_PUTS_LONG_ATTR(cs_pathcomponents(fname), hl_attr(HLF_CM));
61 /* compute the required space for the context */
64 lno[strlen(lno)-2] = '\0'; /* ignore ;" at the end */
66 ! /* hopefully 'num' (num of matches) will be less than 10^16 */
67 ! newsize = strlen(csfmt_str) + 16 + strlen(lno);
68 ! if (bufsize < newsize)
70 ! buf = (char *)vim_realloc(buf, newsize);
78 ! /* csfmt_str = "%4d %6s "; */
79 ! (void)sprintf(buf, csfmt_str, num, lno);
80 ! MSG_PUTS_ATTR(buf, hl_attr(HLF_CM));
82 MSG_PUTS_LONG_ATTR(cs_pathcomponents(fname), hl_attr(HLF_CM));
84 /* compute the required space for the context */
85 *** ../vim-6.2.006/src/version.c Mon Jun 2 22:26:17 2003
86 --- src/version.c Tue Jun 3 20:38:45 2003
90 { /* Add new patch number below this line */
96 hundred-and-one symptoms of being an internet addict:
97 81. At social functions you introduce your husband as "my domain server."
99 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
100 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
101 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
102 \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///