diff src/minibuf.c @ 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 f9342d2eaa31
children 2123804d2bca
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);
 }