mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Moved nick/msg/channel completion to core with some cleanups.
Moved ignore checking to fe-ignore-messages.c. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@750 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8c4b167327
commit
98060c3185
13 changed files with 807 additions and 807 deletions
|
|
@ -43,6 +43,9 @@ static int last_want_space, last_line_pos;
|
|||
#define isseparator(c) \
|
||||
(isspace((int) (c)) || isseparator_notspace(c))
|
||||
|
||||
void chat_completion_init(void);
|
||||
void chat_completion_deinit(void);
|
||||
|
||||
/* Return whole word at specified position in string */
|
||||
char *get_word_at(const char *str, int pos, char **startpos)
|
||||
{
|
||||
|
|
@ -598,6 +601,8 @@ void completion_init(void)
|
|||
complist = NULL;
|
||||
last_line = NULL; last_line_pos = -1;
|
||||
|
||||
chat_completion_init();
|
||||
|
||||
signal_add_first("complete word", (SIGNAL_FUNC) sig_complete_word);
|
||||
signal_add("complete command set", (SIGNAL_FUNC) sig_complete_set);
|
||||
signal_add("complete command toggle", (SIGNAL_FUNC) sig_complete_toggle);
|
||||
|
|
@ -614,6 +619,8 @@ void completion_deinit(void)
|
|||
{
|
||||
free_completions();
|
||||
|
||||
chat_completion_deinit();
|
||||
|
||||
signal_remove("complete word", (SIGNAL_FUNC) sig_complete_word);
|
||||
signal_remove("complete command set", (SIGNAL_FUNC) sig_complete_set);
|
||||
signal_remove("complete command toggle", (SIGNAL_FUNC) sig_complete_toggle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue