summaryrefslogtreecommitdiff
path: root/alot/command.py
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-08-03 22:04:09 +0100
committerpazz <patricktotzke@gmail.com>2011-08-03 22:04:09 +0100
commita696bd7c85299cfd538d2f8b8442cb2ba234d3fa (patch)
treed9af95b57fc4258bfdcce5832ba77fb5d5de5fcc /alot/command.py
parentd59b3a2ac9e9d4e41132e5c35a4946b5d662386a (diff)
added path completer for edit and attach cmds
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: