From cf5e2f273f67178afa67f7974e4c077bf684a76b Mon Sep 17 00:00:00 2001 From: TingPing Date: Thu, 17 Oct 2013 21:59:31 -0400 Subject: libsexy: last color parsing improvement --- src/fe-gtk/sexy-spell-entry.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/sexy-spell-entry.c b/src/fe-gtk/sexy-spell-entry.c index 30ceadd0..92e4abe1 100644 --- a/src/fe-gtk/sexy-spell-entry.c +++ b/src/fe-gtk/sexy-spell-entry.c @@ -995,10 +995,8 @@ check_color: } else { - if (offset > 1) /* No colors but a , was added */ - insert_hiddenchar (entry, i - 2, i - 1); - else - insert_hiddenchar (entry, i - 1, i); + /* No colors but some commas may have been added */ + insert_hiddenchar (entry, i - offset, i - offset + 1); insert_color (entry, i, -1, -1); } -- cgit 1.4.1