# HG changeset patch # User Karl Heuer # Date 766104318 0 # Node ID d84152a9b7e562ca136b3c6b6aaea031168b8eab # Parent 6a097e7b87dcd38215d4034f2161b4f345b06946 (vmotion): Use minibuf_prompt_width despite window-start. diff -r 6a097e7b87dc -r d84152a9b7e5 src/indent.c --- a/src/indent.c Mon Apr 11 22:40:54 1994 +0000 +++ b/src/indent.c Mon Apr 11 22:45:18 1994 +0000 @@ -760,8 +760,11 @@ = 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)