diff options
author | bptato <nincsnevem662@gmail.com> | 2023-01-05 17:31:43 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-01-05 17:31:43 +0100 |
commit | d3e50ed1e95e2b114a9a4e2fa2e1f1d7b988cfe9 (patch) | |
tree | dd282fa4a3cdb0e9fc4368253678dd240639fd1e /src/display/client.nim | |
parent | 11f7aa676ff294508b4273c84db9fbba5cc5fe73 (diff) | |
download | chawan-d3e50ed1e95e2b114a9a4e2fa2e1f1d7b988cfe9.tar.gz |
display/client: quit when pager.buffer is null
Diffstat (limited to 'src/display/client.nim')
-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 311d8ffc..ecc01260 100644 --- a/src/display/client.nim +++ b/src/display/client.nim @@ -375,6 +375,9 @@ proc inputLoop(client: Client) = client.pager.scommand = "" client.handlePagerEvents() client.acceptBuffers() + if client.pager.container == nil: + # No buffer to display. + quit(1) client.pager.showAlerts() client.pager.draw() |