diff options
| author | Richard M. Stallman | 2003-01-13 08:22:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-01-13 08:22:44 +0000 |
| commit | 3ea137e95cfaeb34dd6fe755bbfe3486bea88ddc (patch) | |
| tree | c8023f1ef61a4832068592f5deaada8fd8dd36bd /src | |
| parent | 294d643a40ddc1bcb61933cba1e4c1933062d8bf (diff) | |
| download | emacs-3ea137e95cfaeb34dd6fe755bbfe3486bea88ddc.tar.gz emacs-3ea137e95cfaeb34dd6fe755bbfe3486bea88ddc.zip | |
(minibuffer_completion_contents): Error if point is inside prompt.
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 | ||