From 6e57a9e94ef3b64db7edadc0317a920c5e840bc9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 17 Mar 2001 06:58:13 +0000 Subject: [PATCH] /HILIGHT -full didn't work, and -word was treated as -word + -full. Updated /HELP hilight. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1408 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- docs/help/in/hilight.in | 5 +++-- src/fe-common/core/hilight-text.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/help/in/hilight.in b/docs/help/in/hilight.in index 2d084fad..a38d10c9 100644 --- a/docs/help/in/hilight.in +++ b/docs/help/in/hilight.in @@ -3,9 +3,10 @@ -mask: Match only for nick, is a nick mask -regexp: is a regular expression - -word: must match to full words + -full: must match to full words -nick: Hilight only the nick, not the whole line (default) - -nonick: Hilight the whole line with the hilight color. + -word: Hilight only the word (default with non-public messages) + -line: Hilight the whole line with the hilight color. -color: Print the message with . color is in %code format (see docs/formats.txt) -level: Match only for messages, default is diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c index 80ca2d03..197957f6 100644 --- a/src/fe-common/core/hilight-text.c +++ b/src/fe-common/core/hilight-text.c @@ -474,7 +474,7 @@ static void hilight_print(int index, HILIGHT_REC *rec) chans != NULL ? chans : "", levelstr != NULL ? levelstr : "", rec->nickmask ? " -mask" : "", - rec->fullword ? " -word" : "", + rec->fullword ? " -full" : "", rec->regexp ? " -regexp" : ""); g_free_not_null(chans); g_free_not_null(levelstr); @@ -563,7 +563,7 @@ static void cmd_hilight(const char *data) rec->nick = TRUE; rec->nickmask = g_hash_table_lookup(optlist, "mask") != NULL; - rec->fullword = g_hash_table_lookup(optlist, "word") != NULL; + rec->fullword = g_hash_table_lookup(optlist, "full") != NULL; rec->regexp = g_hash_table_lookup(optlist, "regexp") != NULL; if (colorarg != NULL) {