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:
Fabian Homborg 2021-03-29 17:49:47 +02:00
parent e1d19cf571
commit 312cfacf71

View file

@ -1834,11 +1834,6 @@ void reader_data_t::flash() {
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_nsec = 100 * 1000000;
nanosleep(&pollint, nullptr);