diff options
| author | Karl Heuer | 1994-04-11 22:45:18 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-11 22:45:18 +0000 |
| commit | cb1068e5c66065ec13c8c87bd4f76eb850aca663 (patch) | |
| tree | 037af1737c15c082217d590b517e49db076eab18 /src | |
| parent | 88f176a4a0a1f4a9dfe86d6c2811146b80755f30 (diff) | |
| download | emacs-cb1068e5c66065ec13c8c87bd4f76eb850aca663.tar.gz emacs-cb1068e5c66065ec13c8c87bd4f76eb850aca663.zip | |
(vmotion): Use minibuf_prompt_width despite window-start.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 7 |
1 files changed, 5 insertions, 2 deletions
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) | |||
| 760 | = XTYPE (current_buffer->selective_display) == Lisp_Int | 760 | = XTYPE (current_buffer->selective_display) == Lisp_Int |
| 761 | ? XINT (current_buffer->selective_display) | 761 | ? XINT (current_buffer->selective_display) |
| 762 | : !NILP (current_buffer->selective_display) ? -1 : 0; | 762 | : !NILP (current_buffer->selective_display) ? -1 : 0; |
| 763 | int start_hpos = (EQ (window, minibuf_window) && XWINDOW (window)->start == 1 | 763 | /* The omission of the clause |
| 764 | ? minibuf_prompt_width : 0); | 764 | && marker_position (XWINDOW (window)->start) == BEG |
| 765 | here is deliberate; I think we want to measure from the prompt | ||
| 766 | position even if the minibuffer window has scrolled. */ | ||
| 767 | int start_hpos = (EQ (window, minibuf_window) ? minibuf_prompt_width : 0); | ||
| 765 | 768 | ||
| 766 | retry: | 769 | retry: |
| 767 | if (vtarget > vpos) | 770 | if (vtarget > vpos) |