summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>1999-09-12 20:21:56 +0000
committerGerd Moellmann <gerd@gnu.org>1999-09-12 20:21:56 +0000
commitabf4a9f7e0a6ac633660d95004ac2a0407a82c02 (patch)
treee0c578073d1a09beca1ac8cc2ba030a121968ef8 /src/syntax.c
parent1e3f16d5eba3a6a4f99ae2c448e8108b5d9390ed (diff)
downloademacs-abf4a9f7e0a6ac633660d95004ac2a0407a82c02.tar.gz
(Fforward_word): Use prompt_end_charpos instead
of minibuffer_prompt_length.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 5b5eb341678..d1830462726 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1239,8 +1239,8 @@ and nil is returned.")
/* If in a mini-buffer and moving backwards, stop at the end of the
prompt. This prevents accidentially moving into the read-only
prompt. */
- if (INTEGERP (current_buffer->minibuffer_prompt_length)
- && (prompt_end = XINT (current_buffer->minibuffer_prompt_length),
+ if (INTEGERP (current_buffer->prompt_end_charpos)
+ && (prompt_end = XINT (current_buffer->prompt_end_charpos),
((PT > prompt_end && val < prompt_end)
|| (PT < prompt_end && val > prompt_end))))
val = prompt_end;