From 087bb0e969904085152352db39815a5c89da1b72 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Thu, 9 Jul 2020 03:17:58 +0200 Subject: 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. --- wee_slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit