diff options
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/xtext.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c index 7bf8a822..3d2ae7ae 100644 --- a/src/fe-gtk/xtext.c +++ b/src/fe-gtk/xtext.c @@ -1923,7 +1923,8 @@ gtk_xtext_get_word (GtkXText * xtext, int x, int y, textentry ** ret_ent, word = ent->str + offset; - while (!is_del (*word) && word != ent->str) { + while (!is_del (*word) && word != ent->str) + { word--; len_to_offset++; } @@ -1950,7 +1951,8 @@ gtk_xtext_get_word (GtkXText * xtext, int x, int y, textentry ** ret_ent, word = gtk_xtext_strip_color (word, len, xtext->scratch_buffer, NULL, NULL, slp, FALSE); /* avoid turning the cursor into a hand for non-url part of the word */ - if (xtext->urlcheck_function (GTK_WIDGET (xtext), word)) { + if (xtext->urlcheck_function (GTK_WIDGET (xtext), word)) + { int start, end; url_last (&start, &end); |