aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 4c0cd1b917e..ad7ed32c40a 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1428,9 +1428,17 @@ scrolling (frame)
1428 return 0; 1428 return 0;
1429 old_hash[i] = line_hash_code (current_frame, i); 1429 old_hash[i] = line_hash_code (current_frame, i);
1430 if (! desired_frame->enable[i]) 1430 if (! desired_frame->enable[i])
1431 new_hash[i] = old_hash[i]; 1431 {
1432 /* This line cannot be redrawn, so don't let scrolling mess it. */
1433 new_hash[i] = old_hash[i];
1434#define INFINITY 1000000 /* Taken from scroll.c */
1435 draw_cost[i] = INFINITY;
1436 }
1432 else 1437 else
1433 new_hash[i] = line_hash_code (desired_frame, i); 1438 {
1439 new_hash[i] = line_hash_code (desired_frame, i);
1440 draw_cost[i] = line_draw_cost (desired_frame, i);
1441 }
1434 1442
1435 if (old_hash[i] != new_hash[i]) 1443 if (old_hash[i] != new_hash[i])
1436 { 1444 {
@@ -1439,7 +1447,6 @@ scrolling (frame)
1439 } 1447 }
1440 else if (i == unchanged_at_top) 1448 else if (i == unchanged_at_top)
1441 unchanged_at_top++; 1449 unchanged_at_top++;
1442 draw_cost[i] = line_draw_cost (desired_frame, i);
1443 old_draw_cost[i] = line_draw_cost (current_frame, i); 1450 old_draw_cost[i] = line_draw_cost (current_frame, i);
1444 } 1451 }
1445 1452