From ee200b97aae343e9f756a03055f7cd4618d46679 Mon Sep 17 00:00:00 2001 From: RichardHitt Date: Wed, 24 Apr 2013 13:18:34 -0700 Subject: Fix left-click of URL/HOST by tidying what we pass to fe_open_url() --- src/fe-gtk/maingui.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index fb225f47..edc47fce 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -2233,7 +2233,7 @@ static void mg_word_clicked (GtkWidget *xtext, char *word, GdkEventButton *even) { session *sess = current_sess; - int word_type, start, end; + int word_type = 0, start, end; char *tmp; if (word) @@ -2256,7 +2256,8 @@ mg_word_clicked (GtkWidget *xtext, char *word, GdkEventButton *even) { case WORD_URL: case WORD_HOST: - fe_open_url (word); + word[end] = 0; + fe_open_url (word + start); } } return; -- cgit 1.4.1