Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7fb08f69
Commit
7fb08f69
authored
May 31, 1993
by
Richard M. Stallman
Browse files
(calculate_scrolling): Defend against negative baud_rate.
parent
2d368234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/scroll.c
src/scroll.c
+3
-0
No files found.
src/scroll.c
View file @
7fb08f69
...
...
@@ -108,6 +108,9 @@ calculate_scrolling (frame, matrix, window_size, lines_below,
at least 1/4 second. */
int
extra_cost
=
baud_rate
/
(
10
*
4
*
FRAME_HEIGHT
(
frame
));
if
(
baud_rate
<=
0
)
extra_cost
=
1
;
/* initialize the top left corner of the matrix */
matrix
->
writecost
=
0
;
matrix
->
insertcost
=
INFINITY
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment