From a284219abd992f62b4bbc0047fc561b47f827412 Mon Sep 17 00:00:00 2001 From: TingPing Date: Tue, 15 Oct 2013 22:41:39 -0400 Subject: Reset entry attributes on newlines --- src/fe-gtk/sexy-spell-entry.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fe-gtk/sexy-spell-entry.c b/src/fe-gtk/sexy-spell-entry.c index 42d47127..84eeff98 100644 --- a/src/fe-gtk/sexy-spell-entry.c +++ b/src/fe-gtk/sexy-spell-entry.c @@ -930,6 +930,11 @@ check_attributes (SexySpellEntry *entry, const char *text, int len) insert_color (entry, i, COL_BG, COL_FG); goto check_color; + case '\n': + insert_reset (entry, i); + parsing_color = 0; + break; + case ATTR_COLOR: parsing_color = 1; break; -- cgit 1.4.1