branch: externals/consult
commit e154571fe329d5c12576f5299a79a932be35bcad
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
consult--marker-from-line-column: Ensure that line number stays unchanged
---
consult.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/consult.el b/consult.el
index faea06f0c6..4c9f306a65 100644
--- a/consult.el
+++ b/consult.el
@@ -934,7 +934,7 @@ Also temporarily increase the GC limit via
`consult--with-increased-gc'."
;; Location data might be invalid by now!
(ignore-errors
(forward-line (1- line))
- (forward-char column))
+ (goto-char (min (+ (point) column) (pos-eol))))
(point-marker))))))
(defun consult--line-prefix (&optional curr-line)