]> git.eshelyaron.com Git - emacs.git/commitdiff
(Ferase_buffer): Don't erase the minibuffer prompt.
authorRichard M. Stallman <rms@gnu.org>
Fri, 10 Sep 1999 06:32:34 +0000 (06:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 10 Sep 1999 06:32:34 +0000 (06:32 +0000)
src/buffer.c

index d4c60f966cd11ba2459cbf95904e9f79663d66fb..69bf17283eed6fab490abe196a413bd4935020ca 100644 (file)
@@ -1705,7 +1705,12 @@ so the buffer is truly empty after this.")
   ()
 {
   Fwiden ();
-  del_range (BEG, Z);
+  
+  if (INTEGERP (current_buffer->minibuffer_prompt_length))
+    del_range (XINT (current_buffer->minibuffer_prompt_length), Z);
+  else
+    del_range (BEG, Z);
+
   current_buffer->last_window_start = 1;
   /* Prevent warnings, or suspension of auto saving, that would happen
      if future size is less than past size.  Use of erase-buffer