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
2e87e8f2
Commit
2e87e8f2
authored
Mar 07, 2005
by
Kim F. Storm
Browse files
(notice_overwritten_cursor): Check that phys_cursor.vpos
is valid. If not, clear phys_cursor_on_p and return.
parent
f30c4a5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/xdisp.c
src/xdisp.c
+8
-3
No files found.
src/xdisp.c
View file @
2e87e8f2
...
...
@@ -20201,9 +20201,14 @@ notice_overwritten_cursor (w, area, x0, x1, y0, y1)
if (area != TEXT_AREA)
return;
row = w->current_matrix->rows + w->phys_cursor.vpos;
if (!row->displays_text_p)
return;
if (w->phys_cursor.vpos < 0
|| w->phys_cursor.vpos >= w->current_matrix->nrows
|| (row = w->current_matrix->rows + w->phys_cursor.vpos,
!(row->enabled_p && row->displays_text_p)))
{
w->phys_cursor_on_p = 0;
return;
}
if (row->cursor_in_fringe_p)
{
...
...
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