1
0
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:
Karl Heuer 1995-05-15 21:47:44 +00:00
parent 5960289b1d
commit 39fc6077c5

View File

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