From: John L. <jr...@us...> - 2009-06-01 22:28:32
|
Update of /cvsroot/wxlua/wxLua/samples In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv9876/wxLua/samples Modified Files: editor.wx.lua Log Message: Fix running files with spaces in their names. Index: editor.wx.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/samples/editor.wx.lua,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** editor.wx.lua 1 Apr 2008 05:10:05 -0000 1.58 --- editor.wx.lua 1 Jun 2009 22:28:30 -0000 1.59 *************** *** 1799,1803 **** local id = editor:GetId(); local console = iff(menuBar:IsChecked(ID_USECONSOLE), " -c ", "") ! local cmd = '"'..programName..'" '..console..openDocuments[id].filePath DisplayOutput("Running program: "..cmd.."\n") --- 1799,1803 ---- local id = editor:GetId(); local console = iff(menuBar:IsChecked(ID_USECONSOLE), " -c ", "") ! local cmd = '"'..programName..'" '..console..'"'..openDocuments[id].filePath..'"' DisplayOutput("Running program: "..cmd.."\n") |