bugfix in url finding

This commit is contained in:
Yann Leboulanger 2005-03-11 18:01:38 +00:00
parent c89b98585c
commit dc2b9d741b
1 changed files with 2 additions and 2 deletions

View File

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