~ruther/guix-local

5fe21fbeefe109f400aef40a51f71af111546fa3 — Ludovic Courtès 13 years ago 867b141
utils: Fix column number returned by `source-properties->location'.

* guix/utils.scm (source-properties->location): Use COL, not COL + 1.
1 files changed, 3 insertions(+), 2 deletions(-)

M guix/utils.scm
M guix/utils.scm => guix/utils.scm +3 -2
@@ 533,5 533,6 @@ etc."
  (let ((file (assq-ref loc 'filename))
        (line (assq-ref loc 'line))
        (col  (assq-ref loc 'column)))
    ;; In accordance with the GCS, start line and column numbers at 1.
    (location file (and line (+ line 1)) (and col (+ col 1)))))
    ;; In accordance with the GCS, start line and column numbers at 1.  Note
    ;; that unlike LINE and `port-column', COL is actually 1-indexed here...
    (location file (and line (+ line 1)) col)))