changeset 25626:acfb741e6e24

(Ferase_buffer): Don't erase the minibuffer prompt.
author Richard M. Stallman <rms@gnu.org>
date Fri, 10 Sep 1999 06:32:34 +0000
parents c0e27d3ce645
children 157324e02b30
files src/buffer.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Fri Sep 10 02:42:59 1999 +0000
+++ b/src/buffer.c	Fri Sep 10 06:32:34 1999 +0000
@@ -1705,7 +1705,12 @@
   ()
 {
   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