summaryrefslogtreecommitdiff
path: root/alot/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'alot/widgets')
-rw-r--r--alot/widgets/thread.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py
index 70e7c840..1635d52d 100644
--- a/alot/widgets/thread.py
+++ b/alot/widgets/thread.py
@@ -94,8 +94,14 @@ class TextlinesList(SimpleTree):
for each line in content.
"""
structure = []
- for line in content.splitlines():
- structure.append((FocusableText(line, attr, attr_focus), None))
+
+ # 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))
SimpleTree.__init__(self, structure)