about summary refs log tree commit diff stats
path: root/src/display/pager.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/display/pager.nim')
-rw-r--r--src/display/pager.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/pager.nim b/src/display/pager.nim
index 6db13fac..adfe2f87 100644
--- a/src/display/pager.nim
+++ b/src/display/pager.nim
@@ -263,7 +263,7 @@ proc writeStatusMessage(pager: Pager, str: string,
   var i = start
   let e = min(start + maxwidth, pager.statusgrid.width)
   if i >= e:
-    return e
+    return i
   for r in str.runes:
     let pi = i
     i += r.twidth(i)