diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-05 08:57:55 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-05 08:57:55 +0100 |
commit | 645b3bc675f4fca925538c4beee1408d01692810 (patch) | |
tree | 4abe8e8f7d146f2faee3bf20f3193017bfa6216b /src/display | |
parent | 50c5e6a417a9f3c20224779304d912d2ac837271 (diff) | |
download | chawan-645b3bc675f4fca925538c4beee1408d01692810.tar.gz |
Handle events after input too
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/client.nim | 3 |
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] |