summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-07-25 21:59:55 +0300
committerEli Zaretskii <eliz@gnu.org>2022-07-25 21:59:55 +0300
commit970190b84485e4511b094546395a7e710f894fae (patch)
tree72d2c62716281016cfc81db9edb7e3a9be1e9600
parenta866674b2ab24e349b8132cff1cda4a971881d56 (diff)
downloademacs-970190b84485e4511b094546395a7e710f894fae.tar.gz
Avoid infloop in 'recenter'
* src/window.c (Frecenter): Avoid infinite loop in the minibuffer under 'fido-vertical-mode'. (Bug#56765)
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 0cf6373e0b0..2576b66a181 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);