Rewrite Tab-completion to work with signals - now it should be easy to

add completion to whatever command.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@356 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-17 11:53:45 +00:00 committed by cras
commit 234e95ef94
9 changed files with 534 additions and 749 deletions

View file

@ -317,7 +317,7 @@ static void sig_completion(void)
pos = gui_entry_get_pos();
line = completion_line(active_win, gui_entry_get_text(), &pos);
line = word_complete(active_win, gui_entry_get_text(), &pos);
if (line != NULL) {
gui_entry_set_text(line);
gui_entry_set_pos(pos);
@ -332,7 +332,7 @@ static void sig_replace(void)
pos = gui_entry_get_pos();
line = auto_completion(gui_entry_get_text(), &pos);
line = auto_word_complete(gui_entry_get_text(), &pos);
if (line != NULL) {
gui_entry_set_text(line);
gui_entry_set_pos(pos);