From c280bc6a3d374a88ec1365b8f3c9578e3a1794fa Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 10 Sep 1999 06:32:34 +0000 Subject: [PATCH] (Ferase_buffer): Don't erase the minibuffer prompt. --- src/buffer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index d4c60f966cd..69bf17283ee 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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 -- 2.39.5