about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-04-15 22:16:37 +0100
committerArun Isaac2026-04-15 22:16:37 +0100
commit40962e7254abff17104d9e6420110a05a91ad840 (patch)
treed13e8a43474ea26cdacfbe29b378856b7f458334
parent0e8ff010737b5db42cbee59abac803cdb5a1445d (diff)
downloadkaagum-40962e7254abff17104d9e6420110a05a91ad840.tar.gz
kaagum-40962e7254abff17104d9e6420110a05a91ad840.tar.lz
kaagum-40962e7254abff17104d9e6420110a05a91ad840.zip
Do not indicate line number range when whole file is being read.
-rw-r--r--kaagum/tools/base.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/kaagum/tools/base.scm b/kaagum/tools/base.scm
index cbccf8c..dd6107f 100644
--- a/kaagum/tools/base.scm
+++ b/kaagum/tools/base.scm
@@ -127,8 +127,11 @@ Line numbers start from 1. Output is the raw file contents without line numbers.
                           get-line
                           <>)))))
         #:title (lambda* (#:key path (start-line 1) end-line)
-                  (format #f "read ~a:~a-~a"
-                          path start-line (or end-line "")))
+                  (if (and (= start-line 1)
+                           (not end-line))
+                      (format #f "read ~a" path)
+                      (format #f "read ~a:~a-~a"
+                              path start-line (or end-line ""))))
         #:kind "read"))
 
 (define %list