diff options
author | TingPing <TingPing@users.noreply.github.com> | 2013-08-17 20:39:24 -0400 |
---|---|---|
committer | TingPing <TingPing@users.noreply.github.com> | 2013-08-17 20:39:24 -0400 |
commit | 46c32952b06452a219424ed3e5a6c1da92691a49 (patch) | |
tree | 1884f4da75096b0047604aad9ffa648b93353d80 /src/fe-gtk/xtext.c | |
parent | 41719bd4a8bd66be2a35efd5d015caf3aca0804b (diff) |
Make formatting more consistent
#719
Diffstat (limited to 'src/fe-gtk/xtext.c')
-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); |