Permalink
Browse files

Fix clicking errors for untitled files

The variable being tested for is not what was actually being set. Perhaps it was changed at some point?
  • Loading branch information...
1 parent 99b4e5e commit c1073768b282710d8f6c03fa1ae636009ee2c9d1 @sorbits sorbits committed with infininight Aug 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Support/RubyMate/catch_exception.rb
View
2 Support/RubyMate/catch_exception.rb
@@ -21,7 +21,7 @@
file, line, method = $1, $2, $3
url, display_name = '', 'untitled document';
- if file != '-' && File.exists?(file) && !ENV['TM_SCRIPT_IS_UNTITLED'] then
+ if file != '-' && File.exists?(file) && !ENV['TM_FILE_IS_UNTITLED'] then
file = Pathname.new(file).realpath.to_s
url = '&url=file://' + e_url(file)
display_name = File.basename(file)

0 comments on commit c107376

Please sign in to comment.