about summary refs log tree commit diff stats
path: root/src/local/pager.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-13 00:29:22 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-13 00:29:22 +0100
commit178a5357136a225136691c78216536d7897ecba6 (patch)
treeb5573e0aab88ac57833fa4def6086ba927f1c403 /src/local/pager.nim
parent261b0fca3e7da6328d382ae752c36d374272342a (diff)
downloadchawan-178a5357136a225136691c78216536d7897ecba6.tar.gz
container: allow dismissing loadinfo
it broke line info in console since it's never fully loaded
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r--src/local/pager.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index 50591ee3..0744a151 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -318,8 +318,9 @@ proc refreshStatusMsg*(pager: Pager) =
   elif pager.inputBuffer != "":
     pager.writeStatusMessage(pager.inputBuffer)
   elif container.loadinfo != "":
-    pager.alerton = false
+    pager.alerton = true
     pager.writeStatusMessage(container.loadinfo)
+    container.loadinfo = ""
   elif pager.alerts.len > 0:
     pager.alerton = true
     pager.writeStatusMessage(pager.alerts[0])
@@ -1261,7 +1262,7 @@ proc handleEvent0(pager: Pager, container: Container, event: ContainerEvent): bo
   of INVALID_COMMAND: discard
   of STATUS:
     if pager.container == container:
-      pager.showAlerts()
+      pager.refreshStatusMsg()
   of TITLE:
     if pager.container == container:
       pager.showAlerts()