diff options
| author | Gerd Moellmann | 2000-03-23 11:49:14 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-23 11:49:14 +0000 |
| commit | 4b0bb6f3a9d5c5bc5e25237e63bab4c586b37dd5 (patch) | |
| tree | 9cf8dcdf2e7491e2e74f45f1bc6bbd2cbe9ab376 /src | |
| parent | 990b2375ebeb985d6846eb538a72c3478f460bd4 (diff) | |
| download | emacs-4b0bb6f3a9d5c5bc5e25237e63bab4c586b37dd5.tar.gz emacs-4b0bb6f3a9d5c5bc5e25237e63bab4c586b37dd5.zip | |
(fast_find_position): Make sure not to consider rows
not visible in the window.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 9516de7e033..d49e96cc9bb 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6764,6 +6764,9 @@ fast_find_position (w, pos, hpos, vpos, x, y) | |||
| 6764 | best_row = row; | 6764 | best_row = row; |
| 6765 | best_row_vpos = row_vpos; | 6765 | best_row_vpos = row_vpos; |
| 6766 | } | 6766 | } |
| 6767 | |||
| 6768 | if (row->y + row->height >= yb) | ||
| 6769 | break; | ||
| 6767 | 6770 | ||
| 6768 | ++row; | 6771 | ++row; |
| 6769 | ++row_vpos; | 6772 | ++row_vpos; |