Mercurial > vim
diff src/testdir/test_sound.vim @ 30719:71137f73c94d v9.0.0694
patch 9.0.0694: no native sound support on Mac OS
Commit: https://github.com/vim/vim/commit/4314e4f7da4db5d85f63cdf43b73be3689502c93
Author: Yee Cheng Chin <ychin.git@gmail.com>
Date: Sat Oct 8 13:50:05 2022 +0100
patch 9.0.0694: no native sound support on Mac OS
Problem: No native sound support on Mac OS.
Solution: Add sound support for Mac OS. (Yee Cheng Chin, closes https://github.com/vim/vim/issues/11274)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Oct 2022 15:00:05 +0200 |
parents | 237dace53473 |
children | 70c1a9c6f41d |
line wrap: on
line diff
--- a/src/testdir/test_sound.vim +++ b/src/testdir/test_sound.vim @@ -17,7 +17,11 @@ func Test_play_event() endif let g:playcallback_count = 0 let g:id = 0 - let id = 'bell'->sound_playevent('PlayCallback') + let event_name = 'bell' + if has('osx') + let event_name = 'Tink' + endif + let id = event_name->sound_playevent('PlayCallback') if id == 0 throw 'Skipped: bell event not available' endif