diff options
author | Caio Prado <cagprado@yandex.com> | 2019-05-14 17:01:25 +0800 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-05-14 10:28:50 +0100 |
commit | f81fea2f47955b3193eb396230636821abc783bc (patch) | |
tree | a3be9b48d312929dd49d78fcd853426754edbcc7 /alot/widgets | |
parent | 234d1463de1d7335168144aff9bb42221b899037 (diff) |
Fix double width characters in search view
Hotfix for double width characters causing columns misalign in search
view (https://github.com/pazz/alot/issues/1393)
Diffstat (limited to 'alot/widgets')
-rw-r--r-- | alot/widgets/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/widgets/search.py b/alot/widgets/search.py index e05dea01..62fe29d8 100644 --- a/alot/widgets/search.py +++ b/alot/widgets/search.py @@ -156,7 +156,7 @@ def build_text_part(name, thread, struct): # define width and part_w text = urwid.Text(content, wrap='clip') - width = text.pack()[0] + width = text.pack((maxw or minw,))[0] part_w = AttrFlipWidget(text, struct) return width, part_w |