# HG changeset patch # User Kim F. Storm # Date 1126082764 0 # Node ID cc9451bcd3a00805945b888376bbe31f19098b71 # Parent 67a6de075836620e58ff3fe165526d0e3da4eff5 (try_window): Remove superfluous cursor_height calculation. Fixes crash reported by YAMAMOTO Mitsuharu. diff -r 67a6de075836 -r cc9451bcd3a0 src/xdisp.c --- 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)