diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-06-11 21:11:20 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-06-11 21:11:20 +0200 |
commit | 4d6999c41563860fbc5a4c03dc6b1720a26ee5ee (patch) | |
tree | bd0213063ad1a1f9b072f451809400619475e664 /sdn.cpp | |
parent | 30ed61fdd2c9335d123f3cb16cc0b3d4ba826616 (diff) | |
download | sdn-4d6999c41563860fbc5a4c03dc6b1720a26ee5ee.tar.gz sdn-4d6999c41563860fbc5a4c03dc6b1720a26ee5ee.tar.xz sdn-4d6999c41563860fbc5a4c03dc6b1720a26ee5ee.zip |
Do not beep on window resizes
Diffstat (limited to 'sdn.cpp')
-rw-r--r-- | sdn.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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++; |