summaryrefslogtreecommitdiff
path: root/alot/commands/envelope.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r--alot/commands/envelope.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index 4b485425..5dce6b44 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -369,9 +369,9 @@ class EditCommand(Command):
headertext = ''
for key in edit_headers:
vlist = self.envelope.get_all(key)
- if not vlist:
+ if len(vlist) == 0:
# ensure editable headers are present in template
- vlist = ['']
+ vlist.append('')
else:
# remove to be edited lines from envelope
del self.envelope[key]