Frodak wrote: > Hello, The cygwin packages allow the installation of vim and > mlcscope. I had problems with vim hanging when trying to use the > cscope interface. The problem was that vim is that is expecting the > first line of the returned output to be "cscope: X lines" while > mlcscope returns "mlcscope: X lines". The patch updates how to match > the token in this line, instead of being exactly "cscope:", it'll match > any token containing "cscope:". > > I'd like to note that changing the mlscope executable to cscope will also > change its outpout to "cscope:", but on the system I was part-of this was a > sub-optimal solution. > > --Frodak > > --- if_cscope.c (revision 199) > +++ if_cscope.c (working copy) > @@ -630,7 +630,7 @@ > */ > 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)
Makes sense. Can you please tell me your full name? -- I have a drinking problem -- I don't have a drink! /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///