mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
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:
parent
bc8848f965
commit
234e95ef94
9 changed files with 534 additions and 749 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue