mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-10 15:56:18 +00:00
(vmotion): handle the case where `minibuf_prompt' is nil.
This commit is contained in:
parent
5960289b1d
commit
39fc6077c5
@ -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…
Reference in New Issue
Block a user