From a47740636d5b91895cc68f8cd7b8e3caaa10ee14 Mon Sep 17 00:00:00 2001 From: TingPing Date: Fri, 4 Oct 2013 07:16:44 -0400 Subject: [PATCH] libsexy: never include spaces when spell-checking --- src/fe-gtk/sexy-spell-entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-gtk/sexy-spell-entry.c b/src/fe-gtk/sexy-spell-entry.c index 30e8eb8d..85d050d8 100644 --- a/src/fe-gtk/sexy-spell-entry.c +++ b/src/fe-gtk/sexy-spell-entry.c @@ -1117,7 +1117,8 @@ entry_strsplit_utf8(GtkEntry *entry, gchar ***set, gint **starts, gint **ends) /* Find the end of this string */ cend = i; - while ((!log_attrs[cend].is_word_end || !log_attrs[cend].is_word_boundary)) + while ((!log_attrs[cend].is_word_end || !log_attrs[cend].is_word_boundary) + && !log_attrs[cend].is_white) cend++; /* Copy sub-string */