diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-07-09 02:28:19 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-07-09 02:31:14 +0200 |
commit | 99522c82dd281b1533e2a2be4b2eef8a2e010beb (patch) | |
tree | 4fb16f3e73085a1a85e50eca5d5a600401495954 | |
parent | 3d050458497f4ce97d6586fc7f9006abd242e773 (diff) | |
download | wee-slack-99522c82dd281b1533e2a2be4b2eef8a2e010beb.tar.gz |
Evaluate buflist indent config option as an expression
Fixes #783
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |