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
986e61b8
Commit
986e61b8
authored
May 23, 1994
by
Richard M. Stallman
Browse files
(change_frame_size): Keep cursor coords in range.
parent
38ab08d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/dispnew.c
src/dispnew.c
+6
-1
No files found.
src/dispnew.c
View file @
986e61b8
...
...
@@ -2025,7 +2025,12 @@ change_frame_size (frame, newheight, newwidth, pretend, delay)
FRAME_HEIGHT (frame) = newheight;
FRAME_WIDTH (frame) = newwidth;
if (FRAME_CURSOR_X (frame) >= FRAME_WIDTH (frame))
FRAME_CURSOR_X (frame) = FRAME_WIDTH (frame) - 1;
if (FRAME_CURSOR_Y (frame) >= FRAME_HEIGHT (frame))
FRAME_CURSOR_Y (frame) = FRAME_HEIGHT (frame) - 1;
remake_frame_glyphs (frame);
calculate_costs (frame);
}
...
...
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