(vmotion): handle the case where `minibuf_prompt' is nil.
This commit is contained in:
parent
5960289b1d
commit
39fc6077c5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue