diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-19 17:09:22 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-19 21:53:33 +0100 |
commit | b10a3afb80b3477d9df91357b90bb949ac168f52 (patch) | |
tree | 82126e63d1853e0f9b84530586ed9aa76a51ed39 /slack | |
parent | a2d385bbdb7d6f2c1d7c8c9bdf9548832d8965a3 (diff) | |
download | wee-slack-b10a3afb80b3477d9df91357b90bb949ac168f52.tar.gz |
Only reset foreground color in with_color function
The with_color helper is usually used to set only the foreground color
(currently all usages), so by only reseting the foreground we keep any
existing background color. This fixes the default background on the
current buffer in the buflist for muted conversations.
Diffstat (limited to 'slack')
-rw-r--r-- | slack/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/util.py b/slack/util.py index cfe0e03..f7d16f5 100644 --- a/slack/util.py +++ b/slack/util.py @@ -28,7 +28,7 @@ def get_callback_name(callback: Callable[..., WeechatCallbackReturnType]) -> str return callback_id -def with_color(color: Optional[str], string: str, reset_color: str = "reset"): +def with_color(color: Optional[str], string: str, reset_color: str = "default"): if color: return f"{weechat.color(color)}{string}{weechat.color(reset_color)}" else: |