diff --git a/Support/RubyMate/run_script.rb b/Support/RubyMate/run_script.rb index 3b2d118..0bf706d 100755 --- a/Support/RubyMate/run_script.rb +++ b/Support/RubyMate/run_script.rb @@ -35,6 +35,9 @@ if line =~ /^(\s+)(\S.*?):(\d+)(?::in\s*`(.*?)')?/ indent, file, line, method = $1, $2, $3, $4 url, display_name = '', 'untitled document'; + unless file =~ /^\// + file = File.join(ENV['TM_PROJECT_DIRECTORY'], file) + end unless file == "-" indent += " " if file.sub!(/^\[/, "") url = '&url=file://' + e_url(file)