mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 02:03:13 +02:00
core: make function gui_buffer_match_list case sensitive (issue #1872)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1746,7 +1746,7 @@ def buffer_match_list(buffer: str, string: str) -> int:
|
||||
if buffer:
|
||||
weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1
|
||||
weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0
|
||||
weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1
|
||||
weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1
|
||||
weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0
|
||||
"""
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user