mirror of
https://github.com/vim/vim.git
synced 2025-10-27 09:24:23 -04:00
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().
This commit is contained in:
11
src/sound.c
11
src/sound.c
@@ -156,12 +156,18 @@ f_sound_playevent(typval_T *argvars, typval_T *rettv)
|
||||
sound_play_common(argvars, rettv, FALSE);
|
||||
}
|
||||
|
||||
/*
|
||||
* implementation of sound_playfile({path} [, {callback}])
|
||||
*/
|
||||
void
|
||||
f_sound_playfile(typval_T *argvars, typval_T *rettv)
|
||||
{
|
||||
sound_play_common(argvars, rettv, TRUE);
|
||||
}
|
||||
|
||||
/*
|
||||
* implementation of sound_stop({id})
|
||||
*/
|
||||
void
|
||||
f_sound_stop(typval_T *argvars, typval_T *rettv UNUSED)
|
||||
{
|
||||
@@ -169,8 +175,11 @@ f_sound_stop(typval_T *argvars, typval_T *rettv UNUSED)
|
||||
ca_context_cancel(context, tv_get_number(&argvars[0]));
|
||||
}
|
||||
|
||||
/*
|
||||
* implementation of sound_clear()
|
||||
*/
|
||||
void
|
||||
f_sound_stopall(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
|
||||
f_sound_clear(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
|
||||
{
|
||||
if (context != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user