]> git.0d.be Git - empathy.git/commit
Fix autocompletion for non-alphanumeric nicknames
authorThomas Meire <blackskad@gmail.com>
Wed, 6 Jan 2010 11:03:23 +0000 (11:03 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 6 Jan 2010 11:03:23 +0000 (11:03 +0000)
commit35c99e3a75272c03b71e04c3e1bf1944167295ee
treecc0b93673be69f31da08c5649bc973e3277f8d9b
parent7b2c1fab3ca841fcf54cfb10d21eb0cc3fbbc7a3
Fix autocompletion for non-alphanumeric nicknames

This bug is caused by the behaviour of gtk_text_iter_backward_word_start. It
searches the text for delimiters, based on languages in pango. Numbers and
characters as | and [ are not considered to be part of a word in most
languages, while they are a part of nicknames. Therefore, empathy fails to get
the typed part of the nickname.
The attached patch will instead search backwards for a space character. The
text that needs to be completed, is the text between the caret and the first
space before that. (#554767)
libempathy-gtk/empathy-chat.c