diff options
| author | Kim F. Storm | 2005-08-17 14:59:41 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-08-17 14:59:41 +0000 |
| commit | 69036b87bb3c5aa2beff7440a05dcbae5d7b2d41 (patch) | |
| tree | 80ea6f975f33cf05e66073ac43a85ce43ccdde59 | |
| parent | fbe13428a8eacc89b17eeaedabc117b283b20a7d (diff) | |
| download | emacs-69036b87bb3c5aa2beff7440a05dcbae5d7b2d41.tar.gz emacs-69036b87bb3c5aa2beff7440a05dcbae5d7b2d41.zip | |
(pos_visible_p): Adjust X value if window is hscrolled.
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
| 1347 | 1347 | ||
| 1348 | current_header_line_height = current_mode_line_height = -1; | 1348 | current_header_line_height = current_mode_line_height = -1; |
| 1349 | 1349 | ||
| 1350 | if (visible_p && w->hscroll > 0) | ||
| 1351 | *x -= w->hscroll; | ||
| 1352 | |||
| 1350 | return visible_p; | 1353 | return visible_p; |
| 1351 | } | 1354 | } |
| 1352 | 1355 | ||