From f97650bf9a770bd91dfcd24f693d7686780dcea9 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Fri, 16 Sep 2022 17:05:38 -0500 Subject: [PATCH] Fix stale references to getch() --- src/input_common.cpp | 2 +- tests/pexpects/torn_escapes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input_common.cpp b/src/input_common.cpp index d0e0cbc2c..8deb6e6c9 100644 --- a/src/input_common.cpp +++ b/src/input_common.cpp @@ -221,7 +221,7 @@ maybe_t input_event_queue_t::readch_timed() { } // We are not prepared to handle a signal immediately; we only want to know if we get input on // our fd before the timeout. Use pselect to block all signals; we will handle signals - // before the next call to getch(). + // before the next call to readch(). sigset_t sigs; sigfillset(&sigs); diff --git a/tests/pexpects/torn_escapes.py b/tests/pexpects/torn_escapes.py index 254eb9c91..1927268f6 100644 --- a/tests/pexpects/torn_escapes.py +++ b/tests/pexpects/torn_escapes.py @@ -80,7 +80,7 @@ sendline(r"") expect_prompt() # As before but it comes after the ESC. -# The signal will arrive while we are waiting in getch_timed(). +# The signal will arrive while we are waiting in readch_timed(). send("abc\x1b") sleep(0.05) os.kill(sp.spawn.pid, signal.SIGUSR1)