From: Karl Heuer Date: Mon, 15 May 1995 21:47:44 +0000 (+0000) Subject: (vmotion): handle the case where `minibuf_prompt' is nil. X-Git-Tag: emacs-19.34~4045 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=39fc6077c5002e2c8047fff2e9e9a3415a684aec;p=emacs.git (vmotion): handle the case where `minibuf_prompt' is nil. --- 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);