mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
Subcommand and command parameter completion works now also if you use
alias as the base command. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@380 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0415b1bbce
commit
69b8d4f81b
3 changed files with 49 additions and 24 deletions
|
|
@ -30,9 +30,6 @@
|
|||
#include "lib-config/iconfig.h"
|
||||
#include "settings.h"
|
||||
|
||||
#define alias_find(alias) \
|
||||
iconfig_get_str("aliases", alias, NULL)
|
||||
|
||||
GSList *commands;
|
||||
char *current_command;
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ enum {
|
|||
CMDERR_NOT_GOOD_IDEA /* not good idea to do, -yes overrides this */
|
||||
};
|
||||
|
||||
#define alias_find(alias) \
|
||||
iconfig_get_str("aliases", alias, NULL)
|
||||
|
||||
#define cmd_return_error(a) { signal_emit("error command", 1, GINT_TO_POINTER(a)); signal_stop(); return; }
|
||||
#define cmd_param_error(a) { cmd_params_free(free_arg); cmd_return_error(a); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue