diff options
author | James Booth <boothj5@gmail.com> | 2014-10-18 23:56:10 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-10-18 23:56:10 +0100 |
commit | 04a650468968eadc8b2a85d8780429178e8df0f7 (patch) | |
tree | a419d938a00c33c8dfc74f668c4d16fa0dae6a34 /src/command | |
parent | 6246c8b94074d0fa28aa36d4412b834c8657b819 (diff) | |
download | profani-tty-04a650468968eadc8b2a85d8780429178e8df0f7.tar.gz |
Remove fields from command autocomplete on form submit/cancel
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/commands.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 3bc595af..74d2bbe8 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -2060,6 +2060,10 @@ cmd_form(gchar **args, struct cmd_help_t help) if ((g_strcmp0(args[0], "submit") == 0) || (g_strcmp0(args[0], "cancel") == 0)) { + if (current->form) { + cmd_autocomplete_remove_form_fields(current->form); + } + wins_close_current(); current = wins_get_by_recipient(room); if (current == NULL) { |