changeset 49194:f3184bd36737

(minibuffer_completion_contents): Error if point is inside prompt.
author Richard M. Stallman <rms@gnu.org>
date Mon, 13 Jan 2003 08:22:44 +0000
parents 1dd9faae71ac
children c297d31ef382
files src/minibuf.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/minibuf.c	Mon Jan 13 08:22:08 2003 +0000
+++ b/src/minibuf.c	Mon Jan 13 08:22:44 2003 +0000
@@ -399,6 +399,8 @@
 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);
 }