Mercurial > vim
changeset 1058:a565175274f6 v7.0.184
updated for version 7.0-184
author | vimboss |
---|---|
date | Tue, 16 Jan 2007 14:18:41 +0000 |
parents | 4a4b16c67c62 |
children | b8c880d61acb |
files | src/if_cscope.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -627,10 +627,11 @@ cs_cnt_matches(idx) * If the database is out of date, or there's some other problem, * cscope will output error messages before the number-of-lines output. * Display/discard any output that doesn't match what we want. + * Accept "\S*cscope: X lines", also matches "mlcscope". */ if ((stok = strtok(buf, (const char *)" ")) == NULL) continue; - if (strcmp((const char *)stok, "cscope:")) + if (strstr((const char *)stok, "cscope:") == NULL) continue; if ((stok = strtok(NULL, (const char *)" ")) == NULL)