summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2018-12-07 11:29:13 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2019-03-04 20:38:05 +0000
commitd0297605c0ec1c6b65f541d0fd5b69ac5a0f4ded (patch)
tree2ea082357147a9781fa865f62283c0576ce18860 /alot/ui.py
parentfa5f809505e36cc70d26cec973625abb2a86b704 (diff)
fix double-line issue
Tagstrings with double-width characters resulted in not enough horizontal space being allocated, which lead urwid to draw the statusline in two lines instead of one (see #742). This lets urwid calculate the necessary width itself, using its pack() method.
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/ui.py b/alot/ui.py
index b528518f..3a111a40 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -685,7 +685,7 @@ class UI(object):
footerright = urwid.Text(righttxt, align='right')
columns = urwid.Columns([
footerleft,
- ('fixed', len(righttxt), footerright)])
+ ('pack', footerright)])
footer_att = settings.get_theming_attribute('global', 'footer')
return urwid.AttrMap(columns, footer_att)