summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-09-09 17:03:37 +0200
committerPatrick Totzke <patricktotzke@gmail.com>2012-09-09 17:03:37 +0200
commit4dd89c7ee5537ba45ca1608a312300307e8f996c (patch)
treecfcde64fb157c92c614fde31e6926aae6086c472 /alot
parentffe570e77151e3ff6f230ecb0808adca757354b9 (diff)
make sure ui.mode is defined initially
this fixes an issue with exiting buffer-less ui: this happens only when the initial command fails for some reason.
Diffstat (limited to 'alot')
-rw-r--r--alot/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 49c878b9..0fa94bc9 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -29,7 +29,7 @@ class UI(object):
"""points to currently active :class:`~alot.buffers.Buffer`"""
dbman = None
"""Database Manager (:class:`~alot.db.manager.DBManager`)"""
- mode = None
+ mode = 'global'
"""interface mode identifier - type of current buffer"""
commandprompthistory = []
"""history of the command line prompt"""