summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index b885fa28..67f6c9bb 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1633,7 +1633,7 @@ Edited files are run on close if the ``autorun_on_edit`` settable parameter is T
f.write(history_item or '')
f.close()
- os.system('%s %s' % (self.editor, filename))
+ os.system('"{}" "{}"'.format(self.editor, filename))
if self.autorun_on_edit or history_item:
self.do_load(filename)