Don't reset the screen after emitting a BEL

Fixes #3693
This commit is contained in:
ridiculousfish
2018-09-16 16:25:49 -07:00
parent f3da54d99c
commit e6863a90c8
3 changed files with 7 additions and 1 deletions

View File

@@ -1438,6 +1438,9 @@ static void reader_flash() {
reader_repaint();
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(&data->screen);
pollint.tv_sec = 0;
pollint.tv_nsec = 100 * 1000000;