Allow previous autocompletion with shift tab

This commit is contained in:
James Booth
2017-04-01 00:27:11 +01:00
parent 1b9d033cef
commit 6b830277a6
38 changed files with 597 additions and 466 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -40,7 +40,7 @@
void cmd_ac_init(void);
void cmd_ac_uninit(void);
char* cmd_ac_complete(ProfWin *window, const char *const input);
char* cmd_ac_complete(ProfWin *window, const char *const input, gboolean previous);
void cmd_ac_reset(ProfWin *window);
gboolean cmd_ac_exists(char *cmd);
@@ -57,6 +57,6 @@ void cmd_ac_remove_alias_value(char *value);
void cmd_ac_add_form_fields(DataForm *form);
void cmd_ac_remove_form_fields(DataForm *form);
char* cmd_ac_complete_filepath(const char *const input, char *const startstr);
char* cmd_ac_complete_filepath(const char *const input, char *const startstr, gboolean previous);
#endif

View File

@@ -2133,16 +2133,16 @@ cmd_group(ProfWin *window, const char *const command, gchar **args)
// list all groups
if (args[0] == NULL) {
GSList *groups = roster_get_groups();
GSList *curr = groups;
GList *groups = roster_get_groups();
GList *curr = groups;
if (curr) {
cons_show("Groups:");
while (curr) {
cons_show(" %s", curr->data);
curr = g_slist_next(curr);
curr = g_list_next(curr);
}
g_slist_free_full(groups, g_free);
g_list_free_full(groups, g_free);
} else {
cons_show("No groups.");
}
@@ -3562,9 +3562,9 @@ cmd_invite(ProfWin *window, const char *const command, gchar **args)
gboolean
cmd_invites(ProfWin *window, const char *const command, gchar **args)
{
GSList *invites = muc_invites();
GList *invites = muc_invites();
cons_show_room_invites(invites);
g_slist_free_full(invites, g_free);
g_list_free_full(invites, g_free);
return TRUE;
}