aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 */
54int char_ins_del_ok; /* Terminal can insert and delete chars */ 54int char_ins_del_ok; /* Terminal can insert and delete chars */
55int scroll_region_ok; /* Terminal supports setting the 55int scroll_region_ok; /* Terminal supports setting the
56 scroll window */ 56 scroll window */
57int scroll_region_cost; /* Cost of setting a scroll window,
58 measured in characters */
57int memory_below_frame; /* Terminal remembers lines 59int memory_below_frame; /* Terminal remembers lines
58 scrolled off bottom */ 60 scrolled off bottom */
59int fast_clear_end_of_line; /* Terminal has a `ce' string */ 61int fast_clear_end_of_line; /* Terminal has a `ce' string */
@@ -1090,12 +1092,14 @@ calculate_costs (frame)
1090 1092
1091 FRAME_COST_BAUD_RATE (frame) = baud_rate; 1093 FRAME_COST_BAUD_RATE (frame) = baud_rate;
1092 1094
1095 scroll_region_cost = string_cost (f);
1093#ifdef HAVE_X_WINDOWS 1096#ifdef HAVE_X_WINDOWS
1094 if (FRAME_X_P (frame)) 1097 if (FRAME_X_P (frame))
1095 { 1098 {
1096 do_line_insertion_deletion_costs (frame, 0, ".5*", 0, ".5*", 1099 do_line_insertion_deletion_costs (frame, 0, ".5*", 0, ".5*",
1097 0, 0, 1100 0, 0,
1098 x_screen_planes (frame)); 1101 x_screen_planes (frame));
1102 scroll_region_cost = 0;
1099 return; 1103 return;
1100 } 1104 }
1101#endif 1105#endif