From 7319706b05688c70c1fb4e49e66fb39aa5ef9c4c Mon Sep 17 00:00:00 2001 From: rob Date: Sat, 3 Jan 2009 23:05:00 +0000 Subject: [PATCH] fix codefile-name-containing-spaces bug --- TextMate.sc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TextMate.sc b/TextMate.sc index bca7f7d..116a1f9 100755 --- a/TextMate.sc +++ b/TextMate.sc @@ -83,7 +83,7 @@ SC3Controller { if("^[0-9]+$".matchRegexp(split.first.asString)) { ("mate -l" ++ split.first + "\"" ++ fname ++ "\"").unixCmd(postOutput: false); } { - ("mate" + fname).unixCmd(postOutput: false); + ("mate -l1 \"" ++ fname ++ "\"").unixCmd(postOutput: false); } }; }); @@ -97,18 +97,18 @@ SC3Controller { node = OSCresponderNode(nil, '/sc3ctrl/implementations') { |t, r, msg| if(TextMate.openReferencesInTextMate.state) { - { SC3Controller.methodTemplates(msg[1], true) }.defer + { this.methodTemplates(msg[1], true) }.defer } { // open in SC.app - { SC3Controller.methodTemplates(msg[1], false) }.defer + { this.methodTemplates(msg[1], false) }.defer } }.add; nodes.add(node); node = OSCresponderNode(nil, '/sc3ctrl/references') { |t, r, msg| if(TextMate.openReferencesInTextMate.state) { - { SC3Controller.methodReferences(msg[1], true) }.defer + { this.methodReferences(msg[1], true) }.defer } { // open in SC.app - { SC3Controller.methodReferences(msg[1], false) }.defer + { this.methodReferences(msg[1], false) }.defer } }.add; nodes.add(node);