Fixed a bug where tab-complete didn't worked with utf8/big5 multibyte characters properly

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4229 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Valentin Batz 2006-01-29 22:37:24 +00:00 committed by vb
commit 0d10e2cc06
5 changed files with 66 additions and 6 deletions

View file

@ -778,9 +778,7 @@ static void key_completion(int erase)
char *text, *line;
int pos;
pos = gui_entry_get_pos(active_entry);
text = gui_entry_get_text(active_entry);
text = gui_entry_get_text_and_pos(active_entry, &pos);
line = word_complete(active_win, text, &pos, erase);
g_free(text);
@ -806,9 +804,7 @@ static void key_check_replaces(void)
char *text, *line;
int pos;
pos = gui_entry_get_pos(active_entry);
text = gui_entry_get_text(active_entry);
text = gui_entry_get_text_and_pos(active_entry, &pos);
line = auto_word_complete(text, &pos);
g_free(text);