(minibuffer_completion_contents): Error if point is inside prompt.
This commit is contained in:
parent
294d643a40
commit
3ea137e95c
1 changed files with 2 additions and 0 deletions
|
@ -399,6 +399,8 @@ Lisp_Object
|
|||
minibuffer_completion_contents ()
|
||||
{
|
||||
int prompt_end = XINT (Fminibuffer_prompt_end ());
|
||||
if (PT < prompt_end)
|
||||
error ("Cannot do completion in the prompt");
|
||||
return make_buffer_string (prompt_end, PT, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue