From: Eli Zaretskii Date: Sat, 15 Jan 2022 13:58:21 +0000 (+0200) Subject: Fix setting cursor in pixel-scrolling modes X-Git-Tag: emacs-29.0.90~3028 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=de3a95726540ffb4a3d2197f5581b684b8c3608f;p=emacs.git Fix setting cursor in pixel-scrolling modes * src/xdisp.c (redisplay_window): Don't set cursor to any glyph row past the one that contains EOB. (Bug#53275) --- diff --git a/src/xdisp.c b/src/xdisp.c index 977d31703fb..c695e466e78 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -19157,7 +19157,8 @@ redisplay_window (Lisp_Object window, bool just_this_one_p) struct glyph_row *row; row = MATRIX_FIRST_TEXT_ROW (w->desired_matrix); - while (MATRIX_ROW_BOTTOM_Y (row) < new_vpos) + while (MATRIX_ROW_BOTTOM_Y (row) < new_vpos + && !row->ends_at_zv_p) ++row; TEMP_SET_PT_BOTH (MATRIX_ROW_START_CHARPOS (row),