summaryrefslogtreecommitdiff
path: root/alot/widgets/thread.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-01-02 18:23:29 +0100
committerAnton Khirnov <anton@khirnov.net>2020-02-03 13:00:02 +0100
commit145489a5434aa825077ae8570afe748722d055e2 (patch)
tree70ca225e0703b549ec9c9108ceab1adeb44f5718 /alot/widgets/thread.py
parent11c5995ff803850d41eb93e5bfe7488722b11892 (diff)
widgets/thread: drop thread_focus_linewise
There is no meaningful reason to focus on individual lines, since they are unactionable.
Diffstat (limited to 'alot/widgets/thread.py')
-rw-r--r--alot/widgets/thread.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py
index f013bded..61799aa3 100644
--- a/alot/widgets/thread.py
+++ b/alot/widgets/thread.py
@@ -96,15 +96,7 @@ class TextlinesList(SimpleTree):
:class:`SimpleTree` that contains a list of all-level-0 Text widgets
for each line in content.
"""
- structure = []
-
- # depending on this config setting, we either add individual lines
- # or the complete context as focusable objects.
- if settings.get('thread_focus_linewise'):
- for line in content.splitlines():
- structure.append((FocusableText(line, attr, attr_focus), None))
- else:
- structure.append((FocusableText(content, attr, attr_focus), None))
+ structure = [(FocusableText(content, attr, attr_focus), None)]
SimpleTree.__init__(self, structure)