From 3ff5f0f05d437a6b3eaf3caa5dc2762b49314617 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 10 Jun 2019 13:11:22 +0200 Subject: 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(). --- src/evalfunc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/evalfunc.c') diff --git a/src/evalfunc.c b/src/evalfunc.c index 2d8bf5275..48b848d01 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -812,6 +812,7 @@ static struct fst #endif #ifdef FEAT_TEXT_PROP {"popup_atcursor", 2, 2, f_popup_atcursor}, + {"popup_clear", 0, 0, f_popup_clear}, {"popup_close", 1, 2, f_popup_close}, {"popup_create", 2, 2, f_popup_create}, {"popup_getoptions", 1, 1, f_popup_getoptions}, @@ -928,10 +929,10 @@ static struct fst #endif {"sort", 1, 3, f_sort}, #ifdef FEAT_SOUND + {"sound_clear", 0, 0, f_sound_clear}, {"sound_playevent", 1, 2, f_sound_playevent}, {"sound_playfile", 1, 2, f_sound_playfile}, {"sound_stop", 1, 1, f_sound_stop}, - {"sound_stopall", 0, 0, f_sound_stopall}, #endif {"soundfold", 1, 1, f_soundfold}, {"spellbadword", 0, 1, f_spellbadword}, -- cgit v1.2.1