bugfix in url finding

This commit is contained in:
Yann Leboulanger 2005-03-11 18:01:38 +00:00
parent c89b98585c
commit dc2b9d741b

View file

@ -528,11 +528,11 @@ class tabbed_chat_window:
begin_iter = iter.copy() begin_iter = iter.copy()
#we get the begining of the tag #we get the begining of the tag
while not begin_iter.begins_tag(texttag): while not begin_iter.begins_tag(texttag):
begin_iter.backward_word_start() begin_iter.backward_char()
end_iter = iter.copy() end_iter = iter.copy()
#we get the end of the tag #we get the end of the tag
while not end_iter.ends_tag(texttag): while not end_iter.ends_tag(texttag):
end_iter.forward_word_end() end_iter.forward_char()
word = begin_iter.get_text(end_iter) word = begin_iter.get_text(end_iter)
if event.button == 3: if event.button == 3:
self.make_link_menu(event, kind, word) self.make_link_menu(event, kind, word)