From: Kim F. Storm Date: Wed, 17 Aug 2005 14:59:41 +0000 (+0000) Subject: (pos_visible_p): Adjust X value if window is hscrolled. X-Git-Tag: emacs-pretest-22.0.90~7543 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=69036b87bb3c5aa2beff7440a05dcbae5d7b2d41;p=emacs.git (pos_visible_p): Adjust X value if window is hscrolled. --- 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; }