about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-01 22:13:56 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-01 22:13:56 +0100
commitde4f007f1aaf3df25fd46839be76fc900a389d84 (patch)
tree00e803d8ce9c43a8eed02b556791e46e851e6390 /src
parent0e4fe966ca85bc813c4d6e2cea04020fe099ab22 (diff)
downloadchawan-de4f007f1aaf3df25fd46839be76fc900a389d84.tar.gz
pager: display precnum *and* inputBuffer when precnum != 0
Previously we were overwriting it, and that looked a little strange.
Diffstat (limited to 'src')
-rw-r--r--src/local/pager.nim4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index 61614eef..4a94034e 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -312,9 +312,7 @@ proc refreshStatusMsg*(pager: Pager) =
   if container == nil: return
   if pager.askpromise != nil: return
   if pager.precnum != 0:
-    pager.writeStatusMessage($pager.precnum)
-    if pager.inputBuffer != "":
-      pager.writeStatusMessage(pager.inputBuffer)
+    pager.writeStatusMessage($pager.precnum & pager.inputBuffer)
   elif pager.inputBuffer != "":
     pager.writeStatusMessage(pager.inputBuffer)
   elif container.loadinfo != "":