changeset 25944:fabd8eda763d

Do not linkify unless <proto> is followed by some non-whitespace string.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 04 Feb 2009 13:57:14 +0000
parents f03d0745c2c2
children d95d1fb58014
files pidgin/gtkimhtml.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Tue Feb 03 00:45:21 2009 +0000
+++ b/pidgin/gtkimhtml.c	Wed Feb 04 13:57:14 2009 +0000
@@ -3319,7 +3319,8 @@
 			c++;
 			pos++;
 		} else if ((pos == 0 || wpos == 0 || isspace(*(c - 1))) &&
-		           (len_protocol = gtk_imhtml_is_protocol(c)) > 0) {
+		           (len_protocol = gtk_imhtml_is_protocol(c)) > 0 &&
+				   c[len_protocol] && !isspace(c[len_protocol])) {
 			br = FALSE;
 			if (wpos > 0) {
 				gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos);