From 46c32952b06452a219424ed3e5a6c1da92691a49 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 17 Aug 2013 20:39:24 -0400 Subject: Make formatting more consistent #719 --- src/fe-gtk/xtext.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/fe-gtk/xtext.c') 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); -- cgit 1.4.1