Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

cscope plugin not supporting space in project name (Win32)

(1/1)

damorin:
Hi,

just to report a small bug in the cscope plugin. It's working fine as long as the path is not containing space (not like this one "c:\users\rmorin\fx-2000\fx-2000 Phase II").

Any work-around for this one ?

Thanks.

Windows XP with C:B SVN 7075.

MortenMacFly:

--- Quote from: damorin on June 21, 2011, 09:47:57 pm ---Any work-around for this one ?

--- End quote ---
If you are willing to patch, in CscopePligin.cpp, the method void CscopePlugin::OnFind(wxCommandEvent &event), replacing this line:

--- Code: ---    cmd += WordAtCaret + _T(" -i ") + list_file;

--- End code ---
...with this:

--- Code: ---    cmd += WordAtCaret + _T(" -i \"") + list_file + _T("\"");

--- End code ---
...should do the trick.

Navigation

[0] Message Index

Go to full version