From 39fc6077c5002e2c8047fff2e9e9a3415a684aec Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 15 May 1995 21:47:44 +0000 Subject: [PATCH] (vmotion): handle the case where `minibuf_prompt' is nil. --- src/indent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indent.c b/src/indent.c index 9c29d459870..e075e236d1b 100644 --- a/src/indent.c +++ b/src/indent.c @@ -1095,7 +1095,7 @@ vmotion (from, vtarget, w) position even if the minibuffer window has scrolled. */ if (EQ (window, minibuf_window)) { - if (minibuf_prompt_width == 0) + if (minibuf_prompt_width == 0 && STRINGP (minibuf_prompt)) minibuf_prompt_width = string_display_width (minibuf_prompt, Qnil, Qnil); -- 2.39.2