parent
3c584e2cd5
commit
0d3706e2ee
|
@ -1134,10 +1134,15 @@ entry_strsplit_utf8(GtkEntry *entry, gchar ***set, gint **starts, gint **ends)
|
||||||
gchar *start;
|
gchar *start;
|
||||||
|
|
||||||
/* Find the end of this string */
|
/* Find the end of this string */
|
||||||
cend = i;
|
for (cend = i; cend < n_attrs; cend++)
|
||||||
while ((!log_attrs[cend].is_word_end || !log_attrs[cend].is_word_boundary)
|
{
|
||||||
&& !log_attrs[cend].is_white)
|
PangoLogAttr a = log_attrs[cend];
|
||||||
cend++;
|
|
||||||
|
if (a.is_white)
|
||||||
|
break;
|
||||||
|
if (a.is_word_end && a.is_word_boundary)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/* Copy sub-string */
|
/* Copy sub-string */
|
||||||
start = g_utf8_offset_to_pointer(text, i);
|
start = g_utf8_offset_to_pointer(text, i);
|
||||||
|
|
Loading…
Reference in New Issue