[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 970190b844: Avoid infloop in 'recenter'
From: |
Eli Zaretskii |
Subject: |
emacs-28 970190b844: Avoid infloop in 'recenter' |
Date: |
Mon, 25 Jul 2022 15:00:26 -0400 (EDT) |
branch: emacs-28
commit 970190b84485e4511b094546395a7e710f894fae
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Avoid infloop in 'recenter'
* src/window.c (Frecenter): Avoid infinite loop in the minibuffer
under 'fido-vertical-mode'. (Bug#56765)
---
src/window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/window.c b/src/window.c
index 0cf6373e0b..2576b66a18 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6631,7 +6631,7 @@ and redisplay normally--don't erase and redraw the frame.
*/)
considered to be part of the visible height of the line.
*/
h += extra_line_spacing;
- while (-it.current_y > h)
+ while (-it.current_y > h && it.what != IT_EOB)
move_it_by_lines (&it, 1);
charpos = IT_CHARPOS (it);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 970190b844: Avoid infloop in 'recenter',
Eli Zaretskii <=