Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -711,6 +711,15 @@ popup_create(typval_T *argvars, typval_T } /* + * popup_clear() + */ + void +f_popup_clear(typval_T *argvars UNUSED, typval_T *rettv UNUSED) +{ + close_all_popups(); +} + +/* * popup_create({text}, {options}) */ void @@ -928,12 +937,6 @@ close_all_popups(void) popup_close(curtab->tp_first_popupwin->w_id); } - void -ex_popupclear(exarg_T *eap UNUSED) -{ - close_all_popups(); -} - /* * popup_move({id}, {options}) */