Mercurial > vim
comparison src/popupwin.c @ 17026:905e1b154058 v8.1.1513
patch 8.1.1513: all popup functionality is in functions, except :popupclear
commit https://github.com/vim/vim/commit/3ff5f0f05d437a6b3eaf3caa5dc2762b49314617
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 10 13:11:22 2019 +0200
patch 8.1.1513: all popup functionality is in functions, except :popupclear
Problem: All popup functionality is in functions, except :popupclear.
Solution: Add popup_clear() for consistency. Also rename sound_stopall() to
sound_clear().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 10 Jun 2019 13:15:07 +0200 |
parents | 0f2663c087cd |
children | d4a7c690c8e6 |
comparison
equal
deleted
inserted
replaced
17025:2e3d41442033 | 17026:905e1b154058 |
---|---|
709 redraw_all_later(NOT_VALID); | 709 redraw_all_later(NOT_VALID); |
710 popup_mask_refresh = TRUE; | 710 popup_mask_refresh = TRUE; |
711 } | 711 } |
712 | 712 |
713 /* | 713 /* |
714 * popup_clear() | |
715 */ | |
716 void | |
717 f_popup_clear(typval_T *argvars UNUSED, typval_T *rettv UNUSED) | |
718 { | |
719 close_all_popups(); | |
720 } | |
721 | |
722 /* | |
714 * popup_create({text}, {options}) | 723 * popup_create({text}, {options}) |
715 */ | 724 */ |
716 void | 725 void |
717 f_popup_create(typval_T *argvars, typval_T *rettv) | 726 f_popup_create(typval_T *argvars, typval_T *rettv) |
718 { | 727 { |
924 { | 933 { |
925 while (first_popupwin != NULL) | 934 while (first_popupwin != NULL) |
926 popup_close(first_popupwin->w_id); | 935 popup_close(first_popupwin->w_id); |
927 while (curtab->tp_first_popupwin != NULL) | 936 while (curtab->tp_first_popupwin != NULL) |
928 popup_close(curtab->tp_first_popupwin->w_id); | 937 popup_close(curtab->tp_first_popupwin->w_id); |
929 } | |
930 | |
931 void | |
932 ex_popupclear(exarg_T *eap UNUSED) | |
933 { | |
934 close_all_popups(); | |
935 } | 938 } |
936 | 939 |
937 /* | 940 /* |
938 * popup_move({id}, {options}) | 941 * popup_move({id}, {options}) |
939 */ | 942 */ |