(Fforward_word): Use prompt_end_charpos instead
authorGerd Moellmann <gerd@gnu.org>
Sun, 12 Sep 1999 20:21:56 +0000 (20:21 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 12 Sep 1999 20:21:56 +0000 (20:21 +0000)
of minibuffer_prompt_length.

src/syntax.c

index 5b5eb34..d183046 100644 (file)
@@ -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;