Mercurial > emacs
changeset 6811:d84152a9b7e5
(vmotion): Use minibuf_prompt_width despite window-start.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 11 Apr 1994 22:45:18 +0000 |
parents | 6a097e7b87dc |
children | ba2176fd811c |
files | src/indent.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)