summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-03-23 22:51:37 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-03-23 22:51:37 +0000
commit84c69f026c3ebb84b319f40a544863b6434c6b72 (patch)
tree05eb855b7b5e7f3f31f34c73a027324d346b761c
parent2cb5996bc6cea048b981ea26bdfe90d8ae7dcd60 (diff)
fix spawn parm for EdicCommand
to mean "force spawning, even if editor_spawn is set to False" argparse will - if default is unset - default to False for store_true actions. this means we never got None here, but always false. fixes issue #416
-rw-r--r--alot/commands/globals.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index f99aec25..79a5a3f9 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -216,10 +216,7 @@ class EditCommand(ExternalCommand):
:type thread: bool
"""
self.path = path
- if spawn != None:
- self.spawn = spawn
- else:
- self.spawn = settings.get('editor_spawn')
+ self.spawn = settings.get('editor_spawn') or spawn
if thread != None:
self.thread = thread
else: