mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.1851: crash when sound_playfile() callback plays sound
Problem: Crash when sound_playfile() callback plays sound. Solution: Invoke callback later from event loop.
This commit is contained in:
@@ -5998,6 +5998,11 @@ WaitForCharOrMouse(long msec, int *interrupted, int ignore_input)
|
||||
rest -= msec;
|
||||
}
|
||||
# endif
|
||||
# ifdef FEAT_SOUND_CANBERRA
|
||||
// Invoke any pending sound callbacks.
|
||||
if (has_sound_callback_in_queue())
|
||||
invoke_sound_callback();
|
||||
# endif
|
||||
# ifdef FEAT_MOUSE_GPM
|
||||
gpm_process_wanted = 0;
|
||||
avail = RealWaitForChar(read_cmd_fd, msec,
|
||||
|
Reference in New Issue
Block a user