summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorPhilipp G. Haselwarter <philipp@haselwarter.org>2025-12-28 18:02:40 +0100
committerGitHub <noreply@github.com>2025-12-28 22:32:40 +0530
commitb83478202a89dc1fbed682a95766fc40233ae140 (patch)
tree56a222fc99eb50469967b1561684fd01b888f7fb /lisp
parent343db60c9889ef1ee43efe6b71ac7215e736224a (diff)
fix: use absolute line number in pdf-sync
`line-number-at-pos` should be called with second argument `absolute` set to `t` in order for `pdf-sync-forward-correlate` to work in buffers with active narrowing.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/pdf-sync.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/pdf-sync.el b/lisp/pdf-sync.el
index cfbc2a3..68de3b9 100644
--- a/lisp/pdf-sync.el
+++ b/lisp/pdf-sync.el
@@ -670,7 +670,7 @@ Returns a list \(PDF PAGE X1 Y1 X2 Y2\), where PAGE, X1, Y1, X2
and Y2 may be nil, if the destination could not be found."
(unless (fboundp 'TeX-master-file)
(error "This function works only with AUCTeX"))
- (unless line (setq line (line-number-at-pos)))
+ (unless line (setq line (line-number-at-pos nil t)))
(unless column (setq column (current-column)))
(let* ((pdf (expand-file-name