emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/consult e154571fe3 2/2: consult--marker-from-line-colum


From: ELPA Syncer
Subject: [elpa] externals/consult e154571fe3 2/2: consult--marker-from-line-column: Ensure that line number stays unchanged
Date: Tue, 27 Jun 2023 15:57:46 -0400 (EDT)

branch: externals/consult
commit e154571fe329d5c12576f5299a79a932be35bcad
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]