summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-17 11:53:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-17 11:53:45 +0000
commit234e95ef94804493a3c75f957dbc6bf8af58c5b3 (patch)
tree9b9558cf355424bbeef2e31ecd71265bf88366eb /src/fe-text
parentbc8848f96545b6e074fedfdccf125b896261287b (diff)
downloadirssi-234e95ef94804493a3c75f957dbc6bf8af58c5b3.zip
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
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-readline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index b68ec01e..bee0d285 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -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);