4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: White space in ":cscope find" is not ignored.
12 Solution: Ignore the white space, but not when the leading white space is
13 useful for the argument.
14 Files: runtime/doc/if_cscop.txt, src/if_cscope.c
17 *** ../vim-7.2.144/runtime/doc/if_cscop.txt Sat Aug 9 19:36:48 2008
18 --- runtime/doc/if_cscop.txt Wed Mar 18 14:30:09 2009
21 ! *if_cscop.txt* For Vim version 7.2. Last change: 2005 Mar 29
24 VIM REFERENCE MANUAL by Andy Kahn
26 ! *if_cscop.txt* For Vim version 7.2. Last change: 2009 Mar 18
29 VIM REFERENCE MANUAL by Andy Kahn
32 7 or f: Find this file
33 8 or i: Find files #including this file
36 :cscope find c vim_free
37 ! :cscope find 3 vim_free
39 ! These two examples perform the same query. >
41 :cscope find 0 DEFAULT_TERM
44 7 or f: Find this file
45 8 or i: Find files #including this file
47 + For all types, except 4 and 6, leading white space for {name} is
48 + removed. For 4 and 6 there is exactly one space between {querytype}
49 + and {name}. Further white space is included in {name}.
52 :cscope find c vim_free
53 ! :cscope find 3 vim_free
55 ! These two examples perform the same query: functions calling
58 ! :cscope find t initOnce
59 ! :cscope find t initOnce
61 ! The first one searches for the text "initOnce", the second one for
64 :cscope find 0 DEFAULT_TERM
66 *** ../vim-7.2.144/src/if_cscope.c Wed Mar 18 12:50:58 2009
67 --- src/if_cscope.c Wed Mar 18 13:23:53 2009
83 ! if ((cmd = (char *)alloc((unsigned)(strlen(pattern) + 2))) == NULL)
86 ! (void)sprintf(cmd, "%d%s", search, pattern);
94 ! /* Skip white space before the patter, except for text and pattern search,
95 ! * they may want to use the leading white space. */
97 ! if (search != 4 && search != 6)
98 ! while vim_iswhite(*pat)
101 ! if ((cmd = (char *)alloc((unsigned)(strlen(pat) + 2))) == NULL)
104 ! (void)sprintf(cmd, "%d%s", search, pat);
107 } /* cs_create_cmd */
108 *** ../vim-7.2.144/src/version.c Wed Mar 18 14:19:28 2009
109 --- src/version.c Wed Mar 18 14:28:46 2009
113 { /* Add new patch number below this line */
119 Google is kind of like Dr. Who's Tardis; it's weirder on the
120 inside than on the outside...
122 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
123 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
124 \\\ download, build and distribute -- http://www.A-A-P.org ///
125 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///