about summary refs log tree commit diff stats
path: root/src/display
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-05 08:57:55 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-05 08:57:55 +0100
commit645b3bc675f4fca925538c4beee1408d01692810 (patch)
tree4abe8e8f7d146f2faee3bf20f3193017bfa6216b /src/display
parent50c5e6a417a9f3c20224779304d912d2ac837271 (diff)
downloadchawan-645b3bc675f4fca925538c4beee1408d01692810.tar.gz
Handle events after input too
Diffstat (limited to 'src/display')
-rw-r--r--src/display/client.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/display/client.nim b/src/display/client.nim
index 86ef999c..8ce4f124 100644
--- a/src/display/client.nim
+++ b/src/display/client.nim
@@ -278,6 +278,9 @@ proc inputLoop(client: Client) =
       if Read in event.events:
         if event.fd == client.console.tty.getFileHandle():
           client.input()
+          let container = client.pager.container
+          if container != nil and not client.pager.handleEvents(container):
+            client.quit(1)
           stdout.flushFile()
         else:
           let container = client.fdmap[event.fd]