Mercurial > vim
diff src/sound.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 | 353ed7ef78df |
children | be5a5cfc991a |
line wrap: on
line diff
--- a/src/sound.c +++ b/src/sound.c @@ -156,12 +156,18 @@ f_sound_playevent(typval_T *argvars, typ 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 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) {