Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

• Pymate points to the unsaved buffer not the file in temporary direc…

…tory if TM_SCRIPT_IS_UNTITLED is set.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@9896 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit 4e0d6e4a66d9eb7f634d20e6a0afceb82d7d4c4e 1 parent 43ab859
@lasersox lasersox authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Support/PyMate/tmhooks.py
View
4 Support/PyMate/tmhooks.py
@@ -39,7 +39,7 @@ def tm_excepthook(e_type, e, tb):
url, display_name = '', 'untitled'
io.write("<pre>%s\n%s</pre>\n" % (escape(e.text).rstrip(), "&nbsp;" * (offset-1) + ""))
io.write("<blockquote><table border='0' cellspacing='0' cellpadding='0'>\n")
- if filename and path.exists(filename):
+ if filename and path.exists(filename) and not environ["TM_SCRIPT_IS_UNTITLED"]:
url = "&url=file://%s" % quote(filename)
display_name = path.basename(filename)
if filename == '<string>': # exception in exec'd string.
@@ -72,7 +72,7 @@ def tm_excepthook(e_type, e, tb):
for trace in extract_tb(tb)[1:]: # skip the first one, to avoid showing pymate's execfile call.
filename, line_number, function_name, text = trace
url, display_name = '', 'untitled'
- if filename and path.exists(filename):
+ if filename and path.exists(filename) and not environ["TM_SCRIPT_IS_UNTITLED"]:
url = "&url=file://%s" % quote(path.abspath(filename))
display_name = path.basename(filename)
io.write("<tr><td><a class='near' href='txmt://open?line=%i%s'>" %
Please sign in to comment.
Something went wrong with that request. Please try again.