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.
@@ -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:
