[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult 4f83a71a9c 1/2: consult-goto-line: Use zero-bas
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult 4f83a71a9c 1/2: consult-goto-line: Use zero-based column numbers |
Date: |
Tue, 27 Jun 2023 15:57:46 -0400 (EDT) |
branch: externals/consult
commit 4f83a71a9c8ce0e18cfaa637908792dc1fe1f827
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
consult-goto-line: Use zero-based column numbers
---
consult.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/consult.el b/consult.el
index d744da90ac..faea06f0c6 100644
--- a/consult.el
+++ b/consult.el
@@ -3646,8 +3646,7 @@ Print an error message with MSG function."
(widen))
(goto-char (point-min))
(forward-line (1- line))
- (when (> col 0)
- (goto-char (min (+ (point) (1- col)) (pos-eol))))
+ (goto-char (min (+ (point) col) (pos-eol)))
(point))))
(when (and str (not (equal str "")))
(funcall msg "Please enter a number."))