pidgin.next.minor: d22596ca: Do not linkify unless <proto> is followe...
sadrul at pidgin.im
sadrul at pidgin.im
Wed Feb 4 08:55:33 EST 2009
-----------------------------------------------------------------
Revision: d22596ca08b991a75972575ceba943ee6664fac5
Ancestor: 8e8959bebcec9ad48d075004bd7e03b0c918f958
Author: sadrul at pidgin.im
Date: 2009-02-04T13:57:14
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/d22596ca08b991a75972575ceba943ee6664fac5
Modified files:
pidgin/gtkimhtml.c
ChangeLog:
Do not linkify unless <proto> is followed by some non-whitespace string.
-------------- next part --------------
============================================================
--- pidgin/gtkimhtml.c cdfdf2f2269f3d890733a96c1a255e98f98d44ab
+++ pidgin/gtkimhtml.c d233fe9c3a5a9a7e16477fa5acefef3d2ee9a6c1
@@ -3319,7 +3319,8 @@ void gtk_imhtml_insert_html_at_iter(GtkI
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);
More information about the Commits
mailing list