diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-09-09 17:03:37 +0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-09-09 17:03:37 +0200 |
commit | 4dd89c7ee5537ba45ca1608a312300307e8f996c (patch) | |
tree | cfcde64fb157c92c614fde31e6926aae6086c472 /alot | |
parent | ffe570e77151e3ff6f230ecb0808adca757354b9 (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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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""" |