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);