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/ui | |
parent | 6246c8b94074d0fa28aa36d4412b834c8657b819 (diff) | |
download | profani-tty-04a650468968eadc8b2a85d8780429178e8df0f7.tar.gz |
Remove fields from command autocomplete on form submit/cancel
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 837cac3d..907c525e 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -1013,6 +1013,13 @@ _ui_close_current(void) static void _ui_close_win(int index) { + ProfWin *window = wins_get_by_num(index); + if (window) { + if (window->type == WIN_MUC_CONFIG && window->form) { + cmd_autocomplete_remove_form_fields(window->form); + } + } + wins_close_by_num(index); title_bar_console(); status_bar_current(1); |