mirror of
https://github.com/weechat/weechat.git
synced 2026-07-10 11:43:13 +02:00
Allow buffer local variables in highlight words (option "weechat.look.highlight" and buffer property "highlight_words")
For example "$nick" with highlight a message printed if it contains content of local variable "nick" for buffer.
This commit is contained in:
@@ -579,6 +579,9 @@ gui_buffer_string_replace_local_var (struct t_gui_buffer *buffer,
|
||||
const char *pos_end_name;
|
||||
struct t_gui_buffer_local_var *ptr_local_var;
|
||||
|
||||
if (!string)
|
||||
return NULL;
|
||||
|
||||
length = strlen (string) + 1;
|
||||
result = malloc (length);
|
||||
if (result)
|
||||
|
||||
Reference in New Issue
Block a user