From: Karl Heuer Date: Mon, 11 Apr 1994 22:45:18 +0000 (+0000) Subject: (vmotion): Use minibuf_prompt_width despite window-start. X-Git-Tag: emacs-19.34~9042 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cb1068e5c66065ec13c8c87bd4f76eb850aca663;p=emacs.git (vmotion): Use minibuf_prompt_width despite window-start. --- diff --git a/src/indent.c b/src/indent.c index 0d380f8d5b4..ad876b555d7 100644 --- a/src/indent.c +++ b/src/indent.c @@ -760,8 +760,11 @@ vmotion (from, vtarget, width, hscroll, window) = XTYPE (current_buffer->selective_display) == Lisp_Int ? XINT (current_buffer->selective_display) : !NILP (current_buffer->selective_display) ? -1 : 0; - int start_hpos = (EQ (window, minibuf_window) && XWINDOW (window)->start == 1 - ? minibuf_prompt_width : 0); + /* The omission of the clause + && marker_position (XWINDOW (window)->start) == BEG + here is deliberate; I think we want to measure from the prompt + position even if the minibuffer window has scrolled. */ + int start_hpos = (EQ (window, minibuf_window) ? minibuf_prompt_width : 0); retry: if (vtarget > vpos)