Fix path not expanded for edit_file command.

In particular the issue was preventing notes from being edited.
main
Olivier Mangin 8 years ago
parent ce7eccf8b1
commit 559d486236

@ -11,7 +11,7 @@ import subprocess
from . import color
from . import config
from .p3 import _get_raw_stdout, _get_raw_stderr, input, ustr
from .content import check_file, read_text_file, write_file
from .content import check_file, read_text_file, write_file, system_path
# package-shared ui that can be accessed using :
@ -63,7 +63,7 @@ def _edit_file(editor, path_to_file, temporary=True):
write_file(path_to_file, content)
else:
cmd = editor.split() # this enable editor command with option, e.g. gvim -f
cmd.append(path_to_file)
cmd.append(system_path(path_to_file))
subprocess.call(cmd)

Loading…
Cancel
Save