mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Don't ring the bell in reader_flash
The bell is a mechanism for important notifications. Not having things to do in response to a keypress isn't important enough, especially because we're already flashing and the bell might actually be a bell. Fixes #7875.
This commit is contained in:
parent
e1d19cf571
commit
312cfacf71
1 changed files with 0 additions and 5 deletions
|
@ -1834,11 +1834,6 @@ void reader_data_t::flash() {
|
||||||
|
|
||||||
layout_data_t old_data = std::move(rendered_layout);
|
layout_data_t old_data = std::move(rendered_layout);
|
||||||
|
|
||||||
ignore_result(write(STDOUT_FILENO, "\a", 1));
|
|
||||||
// The write above changed the timestamp of stdout; ensure we don't therefore reset our screen.
|
|
||||||
// See #3693.
|
|
||||||
s_save_status(&screen);
|
|
||||||
|
|
||||||
pollint.tv_sec = 0;
|
pollint.tv_sec = 0;
|
||||||
pollint.tv_nsec = 100 * 1000000;
|
pollint.tv_nsec = 100 * 1000000;
|
||||||
nanosleep(&pollint, nullptr);
|
nanosleep(&pollint, nullptr);
|
||||||
|
|
Loading…
Reference in a new issue