diff options
| author | Karl Heuer | 1994-04-06 06:06:51 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-06 06:06:51 +0000 |
| commit | 44d1c535188df5fe1828817a5b8fcda3caf1c9ee (patch) | |
| tree | 35394374454ccdb7ce4ec6fe23842e13007efc3d /src | |
| parent | a2dd849e99860e65f4f52716569500eb2b147434 (diff) | |
| download | emacs-44d1c535188df5fe1828817a5b8fcda3caf1c9ee.tar.gz emacs-44d1c535188df5fe1828817a5b8fcda3caf1c9ee.zip | |
(vmotion): Don't use minibuf_prompt_width if window-start has suppressed the
prompt.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index 91ea2f9709e..511cf5c294b 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -760,7 +760,8 @@ 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) ? minibuf_prompt_width : 0); | 763 | int start_hpos = (EQ (window, minibuf_window) && XWINDOW (window)->start == 1 |
| 764 | ? minibuf_prompt_width : 0); | ||
| 764 | 765 | ||
| 765 | retry: | 766 | retry: |
| 766 | if (vtarget > vpos) | 767 | if (vtarget > vpos) |