summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-10-15 22:41:39 -0400
committerTingPing <tingping@tingping.se>2013-10-15 22:41:50 -0400
commita284219abd992f62b4bbc0047fc561b47f827412 (patch)
tree55fb567dc86c4a601b45505f7c17a743f504c14a /src
parent2e08b3a2dafa743c0d64e110a1f53aaf5ae6421c (diff)
Reset entry attributes on newlines
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/sexy-spell-entry.c5
1 files changed, 5 insertions, 0 deletions
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;