]> git.eshelyaron.com Git - emacs.git/commitdiff
(vmotion): Use minibuf_prompt_width despite window-start.
authorKarl Heuer <kwzh@gnu.org>
Mon, 11 Apr 1994 22:45:18 +0000 (22:45 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 11 Apr 1994 22:45:18 +0000 (22:45 +0000)
src/indent.c

index 0d380f8d5b47a0c1aa1337291e8a4b6682ad8ee4..ad876b555d75670951d9fed333bbda788627787f 100644 (file)
@@ -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)