summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2022-10-30 17:51:30 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2022-10-30 17:51:30 -0300
commit6a90bc2c3a2fb77a66c19e7400ea0e2fec410e26 (patch)
treef7774b66dfab0e73769e3ab783711504d673ef26
parentea464736239bc5351f1c6a8d158e76fb35c3d080 (diff)
downloadmonparser-6a90bc2c3a2fb77a66c19e7400ea0e2fec410e26.tar.gz
monparser-6a90bc2c3a2fb77a66c19e7400ea0e2fec410e26.zip
Index lines and columns from 1 like most text editors
-rw-r--r--input.lisp2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.lisp b/input.lisp
index d6dd4b3..3e646b4 100644
--- a/input.lisp
+++ b/input.lisp
@@ -27,7 +27,7 @@
(make-input :file filename :data (str:read-file filename)))
(defun generate-report (input message)
- (let ((line 0) (column 0))
+ (let ((line 1) (column 1))
(dotimes (i (input-cursor input))
(let ((c (char (input-data input) i)))
(case c