From 99522c82dd281b1533e2a2be4b2eef8a2e010beb Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Thu, 9 Jul 2020 02:28:19 +0200 Subject: Evaluate buflist indent config option as an expression Fixes #783 --- wee_slack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wee_slack.py b/wee_slack.py index 5378683..34a8e2d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2489,7 +2489,8 @@ class SlackThreadChannel(SlackChannelCommon): if self.label_short_drop_prefix: return name else: - indent = w.config_string(w.config_get("buflist.format.indent")) + indent_expr = w.config_string(w.config_get("buflist.format.indent")) + indent = w.string_eval_expression(indent_expr, {}, {}, {}) return "{}${}".format(indent, name) elif style == "long_default": if self.label_full_drop_prefix: -- cgit