summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-10-17 21:59:31 -0400
committerTingPing <tingping@tingping.se>2013-10-17 21:59:31 -0400
commitcf5e2f273f67178afa67f7974e4c077bf684a76b (patch)
tree91943098c475a7fc163d92f3d9b40f0233f9c0fa /src
parentf342123d7f2d594ed16d6c6e3173bf41d0db3a30 (diff)
libsexy: last color parsing improvement
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/sexy-spell-entry.c6
1 files changed, 2 insertions, 4 deletions
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);
 				}