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
dbcb258a
Commit
dbcb258a
authored
May 02, 1998
by
Richard M. Stallman
Browse files
(XTwrite_glyphs): Don't advance cursor X beyond limit.
(XTcursor_to): Likewise.
parent
f4a4528d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
src/xterm.c
src/xterm.c
+16
-5
No files found.
src/xterm.c
View file @
dbcb258a
...
...
@@ -483,8 +483,16 @@ XTcursor_to (row, col)
{
int mask;
int orow = row;
struct frame *f;
f = updating_frame;
if (f == 0)
f = selected_frame;
curs_x = col;
if (curs_x >= FRAME_CURSOR_X_LIMIT (f))
curs_x = FRAME_CURSOR_X_LIMIT (f) - 1;
curs_y = row;
if (updating_frame == 0)
...
...
@@ -1204,8 +1212,8 @@ XTwrite_glyphs (start, len)
f = selected_frame;
/* If not within an update,
output at the frame's visible cursor. */
curs_x =
f->cursor_x
;
curs_y =
f->cursor_y
;
curs_x =
FRAME_CURSOR_X (f)
;
curs_y =
FRAME_CURSOR_Y (f)
;
}
dumpglyphs (f,
...
...
@@ -1219,10 +1227,13 @@ XTwrite_glyphs (start, len)
&& curs_x + len > f->phys_cursor_x)
f->phys_cursor_on = 0;
curs_x += len;
if (curs_x >= FRAME_CURSOR_X_LIMIT (f))
curs_x = FRAME_CURSOR_X_LIMIT (f) - 1;
if (updating_frame == 0)
x_display_cursor (f, 1, FRAME_CURSOR_X (f) + len, FRAME_CURSOR_Y (f));
else
curs_x += len;
x_display_cursor (f, 1, curs_x, FRAME_CURSOR_Y (f));
UNBLOCK_INPUT;
}
...
...
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