Permalink
Browse files

Fixed typo in introduce variable command

git-svn-id: http://svn.textmate.org/trunk/Bundles/Matlab.tmbundle@10846 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
mattfoster committed Nov 21, 2008
1 parent 7942cfa commit dafd6fef46501fb0e8f19dce69377cf45cffa221
Showing with 3 additions and 3 deletions.
  1. +3 −3 Commands/Introduce variable.tmCommand
@@ -23,7 +23,7 @@ def dialog_get_string(title="", prompt=""):
ret = os.popen(st, 'r').read()
# Extract exit value
plist = plistlib.readPlistFromString(ret)
- return plist['result']['returnArgument']
+ return plist['result']['returnArgument'].rstrip('\n')
line_no = int(os.environ.get('TM_LINE_NUMBER'))-1
@@ -36,10 +36,10 @@ except KeyError:
else:
var = dialog_get_string('Enter new variable name', 'Variable name:')
lines[line_no] = lines[line_no].replace(sel, var)
- lines.insert(line_no, '%s = %s' % (var, sel))
+ lines.insert(line_no, '%s = %s;\n' % (var, sel))
for line in lines:
- print line</string>
+ print line,</string>
<key>input</key>
<string>document</string>
<key>keyEquivalent</key>

0 comments on commit dafd6fe

Please sign in to comment.