aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-19 17:09:22 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-19 21:53:33 +0100
commitb10a3afb80b3477d9df91357b90bb949ac168f52 (patch)
tree82126e63d1853e0f9b84530586ed9aa76a51ed39 /slack
parenta2d385bbdb7d6f2c1d7c8c9bdf9548832d8965a3 (diff)
downloadwee-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.py2
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: