The attached patch makes it possible for the last argument in the
:cscope find [sgdctefi0-8] ...
command to be preceded by multiple spaces.

-- 
Cheers,
Lech

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Index: src/if_cscope.c
===================================================================
--- src/if_cscope.c	(revision 1341)
+++ src/if_cscope.c	(working copy)
@@ -962,8 +962,7 @@
 	return FALSE;
     }
 
-    pat = opt + strlen(opt) + 1;
-    if (pat >= (char *)eap->arg + eap_arg_len)
+    if ((pat = strtok((char *)NULL, (const char *)" ")) == NULL)
     {
 	cs_usage_msg(Find);
 	return FALSE;
Index: runtime/doc/todo.txt
===================================================================
--- runtime/doc/todo.txt	(revision 1341)
+++ runtime/doc/todo.txt	(working copy)
@@ -268,9 +268,6 @@
 
 Win32: Patch for cscope external command. (Mike Williams, 2007 Aug 7)
 
-":cscope find f  filename" doesn't work because of the extra space. (Ethan
-Mallove)
-
 Win32: XPM support only works with path without spaces.  Patch by Mathias
 Michaelis, 2006 Jun 9.  Another patch for more path names, 2006 May 31.
 New version: http://members.tcnet.ch/michaelis/vim/patches.zip (also for other

Raspunde prin e-mail lui