From 69036b87bb3c5aa2beff7440a05dcbae5d7b2d41 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Wed, 17 Aug 2005 14:59:41 +0000 Subject: [PATCH] (pos_visible_p): Adjust X value if window is hscrolled. --- src/xdisp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 3cc42ecdb28..9b5b7edf035 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1347,6 +1347,9 @@ pos_visible_p (w, charpos, x, y, rtop, rbot, exact_mode_line_heights_p) current_header_line_height = current_mode_line_height = -1; + if (visible_p && w->hscroll > 0) + *x -= w->hscroll; + return visible_p; } -- 2.39.2