Mercurial > emacs
diff src/xterm.c @ 36824:7c7084a9f736
(fast_find_position): Return the correct vpos.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Thu, 15 Mar 2001 16:28:44 +0000 |
| parents | 7a809e9fc67e |
| children | f9243c6624b0 |
line wrap: on
line diff
--- a/src/xterm.c Thu Mar 15 13:29:29 2001 +0000 +++ b/src/xterm.c Thu Mar 15 16:28:44 2001 +0000 @@ -7248,11 +7248,13 @@ int maybe_next_line_p = 0; int line_start_position; int yb = window_text_bottom_y (w); - struct glyph_row *row = MATRIX_FIRST_TEXT_ROW (w->current_matrix); - struct glyph_row *best_row = row; - int row_vpos = 0, best_row_vpos = 0; + struct glyph_row *row, *best_row; + int row_vpos, best_row_vpos; int current_x; + row = best_row = MATRIX_FIRST_TEXT_ROW (w->current_matrix); + row_vpos = best_row_vpos = MATRIX_ROW_VPOS (row, w->current_matrix); + while (row->y < yb) { if (row->used[TEXT_AREA])
