summaryrefslogtreecommitdiff
path: root/alot/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/command.py')
-rw-r--r--alot/command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/command.py b/alot/command.py
index 9882d1fc..ea61ecde 100644
--- a/alot/command.py
+++ b/alot/command.py
@@ -876,7 +876,7 @@ def interpret_commandline(cmdline, mode):
elif cmd == 'toggletag':
return commandfactory(cmd, tag=params)
elif cmd == 'edit':
- filepath = params[0]
+ filepath = os.path.expanduser(params)
if os.path.isfile(filepath):
return commandfactory(cmd, path=filepath)
else: