From 4d6999c41563860fbc5a4c03dc6b1720a26ee5ee Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sun, 11 Jun 2023 21:11:20 +0200 Subject: Do not beep on window resizes --- sdn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdn.cpp b/sdn.cpp index e9575c0..da907d7 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -1350,7 +1350,8 @@ fun handle_editor (wint_t c) { if (auto handler = g.editor_on[action]) { handler (); } else if (c & (ALT | SYM)) { - beep (); + if (c != KEY (RESIZE)) + beep (); } else { g.editor_line.insert (g.editor_cursor, 1, c); g.editor_cursor++; -- cgit v1.2.3-70-g09d2