changeset 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 3aa61588445b
children 2b179104bc17
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;
 }