diff options
| author | Richard M. Stallman | 1997-05-29 03:32:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-29 03:32:17 +0000 |
| commit | f188b3c4b8facf2ba99783381e3ebf3a58c2f28b (patch) | |
| tree | 4af1a414fd44a1bc216f4fb46e62dd747ec74639 | |
| parent | 56329bc5edfec8bf502fcca5ff06f08d9ade5762 (diff) | |
| download | emacs-f188b3c4b8facf2ba99783381e3ebf3a58c2f28b.tar.gz emacs-f188b3c4b8facf2ba99783381e3ebf3a58c2f28b.zip | |
(scrolling): If a line is not enabled,
give it an infinite draw_cost.
| -rw-r--r-- | src/dispnew.c | 13 |
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 | ||