aboutsummaryrefslogtreecommitdiffstats
path: root/src/scroll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scroll.c')
-rw-r--r--src/scroll.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scroll.c b/src/scroll.c
index c4882cd091f..3f2724380b3 100644
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -108,6 +108,9 @@ calculate_scrolling (frame, matrix, window_size, lines_below,
108 at least 1/4 second. */ 108 at least 1/4 second. */
109 int extra_cost = baud_rate / (10 * 4 * FRAME_HEIGHT (frame)); 109 int extra_cost = baud_rate / (10 * 4 * FRAME_HEIGHT (frame));
110 110
111 if (baud_rate <= 0)
112 extra_cost = 1;
113
111 /* initialize the top left corner of the matrix */ 114 /* initialize the top left corner of the matrix */
112 matrix->writecost = 0; 115 matrix->writecost = 0;
113 matrix->insertcost = INFINITY; 116 matrix->insertcost = INFINITY;