summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-12-26 15:37:22 +0000
committerRichard M. Stallman <rms@gnu.org>1994-12-26 15:37:22 +0000
commit8a6250e7812a7e7e7a8ba4a891f6adde7cfdc1f1 (patch)
tree1da49bbfdd0081dd8c679fa9621268a248b9c454 /src
parent0a0590fb2627b4eb3838e036307700c66e078475 (diff)
downloademacs-8a6250e7812a7e7e7a8ba4a891f6adde7cfdc1f1.tar.gz
(scroll_region_cost): New variable.
(calculate_costs): Put scroll region overhead in scroll_region_cost.
Diffstat (limited to 'src')
-rw-r--r--src/term.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c
index aa9731d3faf..3258191bfce 100644
--- a/src/term.c
+++ b/src/term.c
@@ -54,6 +54,8 @@ int line_ins_del_ok; /* Terminal can insert and delete lines */
int char_ins_del_ok; /* Terminal can insert and delete chars */
int scroll_region_ok; /* Terminal supports setting the
scroll window */
+int scroll_region_cost; /* Cost of setting a scroll window,
+ measured in characters */
int memory_below_frame; /* Terminal remembers lines
scrolled off bottom */
int fast_clear_end_of_line; /* Terminal has a `ce' string */
@@ -1090,12 +1092,14 @@ calculate_costs (frame)
FRAME_COST_BAUD_RATE (frame) = baud_rate;
+ scroll_region_cost = string_cost (f);
#ifdef HAVE_X_WINDOWS
if (FRAME_X_P (frame))
{
do_line_insertion_deletion_costs (frame, 0, ".5*", 0, ".5*",
0, 0,
x_screen_planes (frame));
+ scroll_region_cost = 0;
return;
}
#endif