# HG changeset patch # User Kim F. Storm # Date 1124290781 0 # Node ID 103b7190c29c76d7cff686205cfd0260c51d72d2 # Parent 3aa61588445be241e51aa38d47bfd90d8baa28fc (pos_visible_p): Adjust X value if window is hscrolled. diff -r 3aa61588445b -r 103b7190c29c src/xdisp.c --- 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; }