diff options
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r-- | alot/commands/globals.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index e61604d9..88a2e8fc 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -259,8 +259,12 @@ class EditCommand(ExternalCommand): :param thread: run asynchronously, don't block alot :type thread: bool """ - self.spawn = spawn or settings.get('editor_spawn') - self.thread = thread or settings.get('editor_in_thread') + self.spawn = spawn + if spawn is None: + self.spawn = settings.get('editor_spawn') + self.thread = thread + if thread is None: + self.thread = settings.get('editor_in_thread') editor_cmdstring = None if os.path.isfile('/usr/bin/editor'): |