From 175a8ae456afa614f9962db14045878a41c2cd22 Mon Sep 17 00:00:00 2001 From: Dirk Koopman Date: Sat, 11 Jul 2020 02:56:04 +0100 Subject: [PATCH] fix spurious == errors on console.pl input This only happens if it catches a character during the idle loop which is the only way to catch Curses RESIZE signal. But a stray "normal" character might get through as well. --- perl/console.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl/console.pl b/perl/console.pl index f7b0d5f4..78272aac 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -518,7 +518,7 @@ sub idle_loop } my $ch = $bot->getch(); # this is here just to catch RESIZE events if (defined $ch) { - if ($ch == KEY_RESIZE) { + if ($ch =~ /^\d+$/ && $ch == KEY_RESIZE) { doresize(); } else { rec_stdin($ch) unless $ch == '-1'; -- 2.43.0