1
0
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:
Sebastien Helleu
2010-04-03 17:25:13 +02:00
parent 915d4801f6
commit 187381f1d1
2 changed files with 24 additions and 7 deletions
+3
View File
@@ -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)