fix a crash on last word completion

This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-07-20 20:02:12 +00:00
parent 5dd7c9598e
commit cf7f1db5c6

View file

@ -269,7 +269,7 @@ class Gui(object):
for char in char_we_dont_want: # remove the chars we don't want for char in char_we_dont_want: # remove the chars we don't want
word = word.replace(char, '') word = word.replace(char, '')
if len(word) > 5: if len(word) > 5:
words.append(word) words.append(word.encode('utf-8'))
self.window.input.auto_completion(words) self.window.input.auto_completion(words)
def go_to_important_room(self): def go_to_important_room(self):