summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-10-04 07:16:44 -0400
committerTingPing <tingping@tingping.se>2013-10-04 07:16:44 -0400
commita47740636d5b91895cc68f8cd7b8e3caaa10ee14 (patch)
tree90583c1d74f6d08cd01aab01777f7ed0cd95b74d /src/fe-gtk
parenta29ccffcbee5c62f45d224331193835971d9101f (diff)
libsexy: never include spaces when spell-checking
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/sexy-spell-entry.c3
1 files changed, 2 insertions, 1 deletions
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 */