diff options
author | Jared Crapo <jared@kotfu.net> | 2017-08-19 23:23:32 -0600 |
---|---|---|
committer | Jared Crapo <jared@kotfu.net> | 2017-08-19 23:23:32 -0600 |
commit | dc0ad81e6858aa9387c7dbd88f5721b6762f51b1 (patch) | |
tree | 9421eb4793bd062ca2f13c5586433b5803123805 /cmd2.py | |
parent | f49d88a5bc5d981c78c2242a53ac34f8576b89ee (diff) | |
download | cmd2-git-dc0ad81e6858aa9387c7dbd88f5721b6762f51b1.tar.gz |
Ensure editor and the file to edit can have spaces in them
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |