summaryrefslogtreecommitdiff
path: root/src/indent.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-04-06 06:06:51 +0000
committerKarl Heuer <kwzh@gnu.org>1994-04-06 06:06:51 +0000
commit6eaab4d46060ac8756266270ca2a72844ed0ed00 (patch)
tree4e29ee08a37b5b8b7abd2c8fc691da371aac6553 /src/indent.c
parent6e069161e07678662968ce7378e779b48ad4f26f (diff)
downloademacs-6eaab4d46060ac8756266270ca2a72844ed0ed00.tar.gz
(vmotion): Don't use minibuf_prompt_width if window-start has suppressed the
prompt.
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c3
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)
= 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) ? minibuf_prompt_width : 0);
+ int start_hpos = (EQ (window, minibuf_window) && XWINDOW (window)->start == 1
+ ? minibuf_prompt_width : 0);
retry:
if (vtarget > vpos)