diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-06-16 22:46:22 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-06-16 22:46:22 +0100 |
commit | 4a9c4e9e07f2621f7d7cf504e476d649c5628b82 (patch) | |
tree | 14b7e744b8a4d48828d7b6b13634189e3d6907b8 /alot/commands/globals.py | |
parent | 5eb500b51574393e822a006b5b56e517b9619a46 (diff) |
fix issue #475
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'): |