]> git.eshelyaron.com Git - emacs.git/commit
Fix subscript error in calculate_direct_scrolling
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 28 Jul 2015 06:36:48 +0000 (23:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 28 Jul 2015 06:40:27 +0000 (23:40 -0700)
commit1216f7332d18248017835b1b01ded6345b51b976
tree5f877f9ac22b4a789d95a29b8413ad6ced83f366
parentf5dc3cf21cf6d6f51c096262225fcb96a8a7f126
Fix subscript error in calculate_direct_scrolling

Use slightly-longer cost vectors.  Without this change,
calculate_direct_scrolling can have a subscript violation when
FRAME_LINES (frame) <= delta.
* src/scroll.c (calculate_scrolling, calculate_direct_scrolling)
(line_ins_del, do_line_insertion_deletion_costs):
Allocate and use slightly-larger cost vectors, ones based on
FRAME_TOTAL_LINES instead of FRAME_LINES.
src/scroll.c