diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 7471a14bb4c..160b36188e7 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -399,6 +399,8 @@ Lisp_Object | |||
| 399 | minibuffer_completion_contents () | 399 | minibuffer_completion_contents () |
| 400 | { | 400 | { |
| 401 | int prompt_end = XINT (Fminibuffer_prompt_end ()); | 401 | int prompt_end = XINT (Fminibuffer_prompt_end ()); |
| 402 | if (PT < prompt_end) | ||
| 403 | error ("Cannot do completion in the prompt"); | ||
| 402 | return make_buffer_string (prompt_end, PT, 1); | 404 | return make_buffer_string (prompt_end, PT, 1); |
| 403 | } | 405 | } |
| 404 | 406 | ||