Commit f188b3c4 authored by Richard M. Stallman's avatar Richard M. Stallman

(scrolling): If a line is not enabled,

give it an infinite draw_cost.
parent 56329bc5
......@@ -1428,9 +1428,17 @@ scrolling (frame)
return 0;
old_hash[i] = line_hash_code (current_frame, i);
if (! desired_frame->enable[i])
new_hash[i] = old_hash[i];
{
/* This line cannot be redrawn, so don't let scrolling mess it. */
new_hash[i] = old_hash[i];
#define INFINITY 1000000 /* Taken from scroll.c */
draw_cost[i] = INFINITY;
}
else
new_hash[i] = line_hash_code (desired_frame, i);
{
new_hash[i] = line_hash_code (desired_frame, i);
draw_cost[i] = line_draw_cost (desired_frame, i);
}
if (old_hash[i] != new_hash[i])
{
......@@ -1439,7 +1447,6 @@ scrolling (frame)
}
else if (i == unchanged_at_top)
unchanged_at_top++;
draw_cost[i] = line_draw_cost (desired_frame, i);
old_draw_cost[i] = line_draw_cost (current_frame, i);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment