Mercurial > emacs
changeset 65354:cc9451bcd3a0
(try_window): Remove superfluous cursor_height calculation.
Fixes crash reported by YAMAMOTO Mitsuharu.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 07 Sep 2005 08:46:04 +0000 |
parents | 67a6de075836 |
children | d96b22b8de33 |
files | src/xdisp.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Wed Sep 07 08:45:39 2005 +0000 +++ b/src/xdisp.c Wed Sep 07 08:46:04 2005 +0000 @@ -12830,12 +12830,11 @@ if (check_margins && !MINI_WINDOW_P (w)) { - int this_scroll_margin, cursor_height; + int this_scroll_margin; this_scroll_margin = max (0, scroll_margin); this_scroll_margin = min (this_scroll_margin, WINDOW_TOTAL_LINES (w) / 4); this_scroll_margin *= FRAME_LINE_HEIGHT (it.f); - cursor_height = MATRIX_ROW (w->desired_matrix, w->cursor.vpos)->height; if ((w->cursor.y < this_scroll_margin && CHARPOS (pos) > BEGV)