summaryrefslogtreecommitdiff
path: root/src/fe-common/core/hilight-text.c
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2004-09-13 19:02:02 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-09-13 19:02:02 +0000
commitefb20d7cc28640a466dfd4feeb7450c8f2090357 (patch)
tree2eed0d35d3c92a1d4dfe14ca834c9bfab0e250ac /src/fe-common/core/hilight-text.c
parent2f81d1f160ee6ffd18aa3c7731633057eb07d0e8 (diff)
downloadirssi-efb20d7cc28640a466dfd4feeb7450c8f2090357.zip
Fix readded (changed) hilights being in config twice, resulted in duplicate hilights or removed hilights coming back (Bug 39)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3293 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/hilight-text.c')
-rw-r--r--src/fe-common/core/hilight-text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c
index 032dec69..796a482b 100644
--- a/src/fe-common/core/hilight-text.c
+++ b/src/fe-common/core/hilight-text.c
@@ -124,8 +124,8 @@ static void hilight_init_rec(HILIGHT_REC *rec)
void hilight_create(HILIGHT_REC *rec)
{
if (g_slist_find(hilights, rec) != NULL) {
- hilights = g_slist_remove(hilights, rec);
hilight_remove_config(rec);
+ hilights = g_slist_remove(hilights, rec);
}
hilights = g_slist_append(hilights, rec);