mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.4744: a terminal window can't use the bell
Problem: A terminal window can't use the bell. Solution: Add bell support for the terminal window. (closes #10178)
This commit is contained in:
@@ -3385,12 +3385,22 @@ handle_postponed_scrollback(term_T *term)
|
||||
limit_scrollback(term, &term->tl_scrollback, TRUE);
|
||||
}
|
||||
|
||||
/*
|
||||
* Called when the terminal wants to ring the system bell.
|
||||
*/
|
||||
static int
|
||||
handle_bell(void *user UNUSED)
|
||||
{
|
||||
vim_beep(BO_SH);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static VTermScreenCallbacks screen_callbacks = {
|
||||
handle_damage, // damage
|
||||
handle_moverect, // moverect
|
||||
handle_movecursor, // movecursor
|
||||
handle_settermprop, // settermprop
|
||||
NULL, // bell
|
||||
handle_bell, // bell
|
||||
handle_resize, // resize
|
||||
handle_pushline, // sb_pushline
|
||||
NULL // sb_popline
|
||||
|
Reference in New Issue
Block a user