]> git.eshelyaron.com Git - emacs.git/commitdiff
(pos_visible_p): Adjust X value if window is hscrolled.
authorKim F. Storm <storm@cua.dk>
Wed, 17 Aug 2005 14:59:41 +0000 (14:59 +0000)
committerKim F. Storm <storm@cua.dk>
Wed, 17 Aug 2005 14:59:41 +0000 (14:59 +0000)
src/xdisp.c

index 3cc42ecdb28697c69811b03c016ab5f52deab0fd..9b5b7edf035141c1f4da8050e5caeee0163d9711 100644 (file)
@@ -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;
 }