about summary refs log tree commit diff stats
path: root/src/display/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-01-05 17:31:43 +0100
committerbptato <nincsnevem662@gmail.com>2023-01-05 17:31:43 +0100
commitd3e50ed1e95e2b114a9a4e2fa2e1f1d7b988cfe9 (patch)
treedd282fa4a3cdb0e9fc4368253678dd240639fd1e /src/display/client.nim
parent11f7aa676ff294508b4273c84db9fbba5cc5fe73 (diff)
downloadchawan-d3e50ed1e95e2b114a9a4e2fa2e1f1d7b988cfe9.tar.gz
display/client: quit when pager.buffer is null
Diffstat (limited to 'src/display/client.nim')
-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 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()