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
68c5d1db
Commit
68c5d1db
authored
Oct 17, 2000
by
Gerd Moellmann
Browse files
(try_cursor_movement): Use cursor_row_p also when
PT has moved backward.
parent
9a038881
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
src/ChangeLog
src/ChangeLog
+3
-0
src/xdisp.c
src/xdisp.c
+5
-5
No files found.
src/ChangeLog
View file @
68c5d1db
2000-10-17 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (try_cursor_movement): Use cursor_row_p also when
PT has moved backward.
* xdisp.c (cursor_row_p): Take continued lines into account.
* alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
...
...
src/xdisp.c
View file @
68c5d1db
...
...
@@ -8958,12 +8958,12 @@ try_cursor_movement (window, startp, scroll_step)
if (rc == 0)
{
int scroll_p = 0;
int last_y = window_text_bottom_y (w) - this_scroll_margin;
if (PT > XFASTINT (w->last_point))
{
/* Point has moved forward. */
int last_y = window_text_bottom_y (w) - this_scroll_margin;
while (MATRIX_ROW_END_CHARPOS (row) < PT
&& MATRIX_ROW_BOTTOM_Y (row) < last_y)
{
...
...
@@ -9024,9 +9024,9 @@ try_cursor_movement (window, startp, scroll_step)
/* Due to newlines in overlay strings, we may have to
skip forward over overlay strings. */
while (MATRIX_ROW_
END_CHARPOS (row) == PT
&& MATRIX_ROW_END
S_IN_OVERLAY_STRING_P (row)
&& !
row->ends_at_zv_p
)
while (MATRIX_ROW_
BOTTOM_Y (row) < last_y
&& MATRIX_ROW_END
_CHARPOS (row) == PT
&& !
cursor_row_p (w, row)
)
++row;
/* If within the scroll margin, scroll. */
...
...
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