diff src/xdisp.c @ 65015:103b7190c29c

(pos_visible_p): Adjust X value if window is hscrolled.
author Kim F. Storm <storm@cua.dk>
date Wed, 17 Aug 2005 14:59:41 +0000
parents 4de8eb59ebbe
children a093a1e65b71
line wrap: on
line diff
--- a/src/xdisp.c	Wed Aug 17 14:08:30 2005 +0000
+++ b/src/xdisp.c	Wed Aug 17 14:59:41 2005 +0000
@@ -1347,6 +1347,9 @@
 
   current_header_line_height = current_mode_line_height = -1;
 
+  if (visible_p && w->hscroll > 0)
+    *x -= w->hscroll;
+
   return visible_p;
 }