aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmds.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmds.c b/src/cmds.c
index 2273aa03002..9c2f83dc054 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -163,7 +163,17 @@ If scan reaches end of buffer, stop there without error.")
163 else 163 else
164 CHECK_NUMBER (n, 0); 164 CHECK_NUMBER (n, 0);
165 165
166#if !NO_PROMPT_IN_BUFFER
167 {
168 int pos = XFASTINT (Fline_beginning_position (n));
169 if (INTEGERP (current_buffer->minibuffer_prompt_length)
170 && pos < XFASTINT (current_buffer->minibuffer_prompt_length))
171 pos = XFASTINT (current_buffer->minibuffer_prompt_length);
172 SET_PT (pos);
173 }
174#else
166 SET_PT (XINT (Fline_beginning_position (n))); 175 SET_PT (XINT (Fline_beginning_position (n)));
176#endif
167 return Qnil; 177 return Qnil;
168} 178}
169 179