comparison src/xdisp.c @ 5739:0709eb474647

(try_window_id): Don't pass value beyond ZV to compute_motion.
author Karl Heuer <kwzh@gnu.org>
date Wed, 02 Feb 1994 07:25:37 +0000
parents b5027523c90d
children 295e342614a4
comparison
equal deleted inserted replaced
5738:730f63010940 5739:0709eb474647
1423 if (GPT - BEG < beg_unchanged) 1423 if (GPT - BEG < beg_unchanged)
1424 beg_unchanged = GPT - BEG; 1424 beg_unchanged = GPT - BEG;
1425 if (Z - GPT < end_unchanged) 1425 if (Z - GPT < end_unchanged)
1426 end_unchanged = Z - GPT; 1426 end_unchanged = Z - GPT;
1427 1427
1428 if (beg_unchanged + 1 < start) 1428 if (beg_unchanged + BEG < start)
1429 return 0; /* Give up if changes go above top of window */ 1429 return 0; /* Give up if changes go above top of window */
1430 1430
1431 /* Find position before which nothing is changed. */ 1431 /* Find position before which nothing is changed. */
1432 bp = *compute_motion (start, 0, lmargin, 1432 bp = *compute_motion (start, 0, lmargin,
1433 beg_unchanged + 1, height + 1, 0, width, hscroll, 1433 min (ZV, beg_unchanged + BEG), height + 1, 0,
1434 pos_tab_offset (w, start)); 1434 width, hscroll, pos_tab_offset (w, start));
1435 if (bp.vpos >= height) 1435 if (bp.vpos >= height)
1436 { 1436 {
1437 if (point < bp.bufpos && !bp.contin) 1437 if (point < bp.bufpos && !bp.contin)
1438 { 1438 {
1439 /* All changes are below the frame, and point is on the frame. 1439 /* All changes are below the frame, and point is on the frame.