logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0002-Break-out-of-input-loop-when-UI-is-hidden.patch (827B)


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