blob: 68df204e3bbd83fa5fd62dde25e5625cff1b104f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From 535cd53babbd4d827c7330e223c5e17b1f5128c3 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Mon, 31 May 2021 16:37:09 -0700
Subject: [PATCH] Break out of input loop when UI is hidden
Otherwise, wget_wch() is called immediately after hiding the UI
with M-l, which restores curses mode when using NetBSD's libcurses.
---
input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/input.c b/input.c
index 820bf3c..f396fbd 100644
--- a/input.c
+++ b/input.c
@@ -543,7 +543,7 @@ void inputRead(void) {
wint_t ch;
static bool paste, style, literal;
- for (int ret; ERR != (ret = wget_wch(uiInput, &ch));) {
+ for (int ret; !waiting && ERR != (ret = wget_wch(uiInput, &ch));) {
bool tabbing = false;
size_t pos = edits[tab.id].pos;
bool spr = uiSpoilerReveal;
--
2.34.1
|