aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c7
1 files changed, 6 insertions, 1 deletions
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.")
1705 () 1705 ()
1706{ 1706{
1707 Fwiden (); 1707 Fwiden ();
1708 del_range (BEG, Z); 1708
1709 if (INTEGERP (current_buffer->minibuffer_prompt_length))
1710 del_range (XINT (current_buffer->minibuffer_prompt_length), Z);
1711 else
1712 del_range (BEG, Z);
1713
1709 current_buffer->last_window_start = 1; 1714 current_buffer->last_window_start = 1;
1710 /* Prevent warnings, or suspension of auto saving, that would happen 1715 /* Prevent warnings, or suspension of auto saving, that would happen
1711 if future size is less than past size. Use of erase-buffer 1716 if future size is less than past size. Use of erase-buffer