From c724032a220790cd3a62154e8b482ff08af21abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 21 Jan 2023 20:47:29 +0100 Subject: core: make function gui_buffer_match_list case sensitive (issue #1872) --- src/gui/gui-buffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 4cfed5886..24ea19037 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -1138,6 +1138,8 @@ gui_buffer_string_replace_local_var (struct t_gui_buffer *buffer, * List is a comma-separated list of buffers, where exclusion is possible with * char '!', and "*" means all buffers. * + * Comparison is case sensitive. + * * Examples: * "*" * "*,!*#weechat*" @@ -1165,7 +1167,7 @@ gui_buffer_match_list (struct t_gui_buffer *buffer, const char *string) if (buffers) { match = string_match_list (buffer->full_name, - (const char **)buffers, 0); + (const char **)buffers, 1); string_free_split (buffers); } -- cgit v1.2.3