summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-11 21:11:20 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-11 21:11:20 +0200
commit4d6999c41563860fbc5a4c03dc6b1720a26ee5ee (patch)
treebd0213063ad1a1f9b072f451809400619475e664
parent30ed61fdd2c9335d123f3cb16cc0b3d4ba826616 (diff)
downloadsdn-4d6999c41563860fbc5a4c03dc6b1720a26ee5ee.tar.gz
sdn-4d6999c41563860fbc5a4c03dc6b1720a26ee5ee.tar.xz
sdn-4d6999c41563860fbc5a4c03dc6b1720a26ee5ee.zip
Do not beep on window resizes
-rw-r--r--sdn.cpp3
1 files changed, 2 insertions, 1 deletions
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++;