aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-07-09 03:17:58 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-07-09 03:17:58 +0200
commit087bb0e969904085152352db39815a5c89da1b72 (patch)
tree8554a3a7bf7bce1eb8bf6fbbdc809ea6b3f7acc1 /wee_slack.py
parent679a05fbe296165886dd48d1e0f69941037cc0d2 (diff)
downloadwee-slack-087bb0e969904085152352db39815a5c89da1b72.tar.gz
Set extra_var slack_thread in indent evaluation
This allows you add a condition for slack threads in the indent option to display the correct thing, e.g. when using tree style indent.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 4a5d57b..a6471a6 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2490,7 +2490,7 @@ class SlackThreadChannel(SlackChannelCommon):
return name
else:
indent_expr = w.config_string(w.config_get("buflist.format.indent"))
- indent = w.string_eval_expression(indent_expr, {}, {}, {})
+ indent = w.string_eval_expression(indent_expr, {}, {"slack_thread": "1"}, {})
return "{}{}${}".format(indent, w.color("default"), name)
elif style == "long_default":
if self.label_full_drop_prefix: