aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 0fc6bb4666e..6ab4200b750 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -373,7 +373,6 @@ The value is never nil.")
373 b->newline_cache = 0; 373 b->newline_cache = 0;
374 b->width_run_cache = 0; 374 b->width_run_cache = 0;
375 b->width_table = Qnil; 375 b->width_table = Qnil;
376 b->prompt_end_charpos = Qnil;
377 b->prevent_redisplay_optimizations_p = 1; 376 b->prevent_redisplay_optimizations_p = 1;
378 377
379 /* Put this on the chain of all buffers including killed ones. */ 378 /* Put this on the chain of all buffers including killed ones. */
@@ -453,7 +452,6 @@ NAME should be a string which is not the name of an existing buffer.")
453 b->newline_cache = 0; 452 b->newline_cache = 0;
454 b->width_run_cache = 0; 453 b->width_run_cache = 0;
455 b->width_table = Qnil; 454 b->width_table = Qnil;
456 b->prompt_end_charpos = Qnil;
457 455
458 /* Put this on the chain of all buffers including killed ones. */ 456 /* Put this on the chain of all buffers including killed ones. */
459 b->next = all_buffers; 457 b->next = all_buffers;
@@ -1222,7 +1220,6 @@ with SIGHUP.")
1222 b->width_run_cache = 0; 1220 b->width_run_cache = 0;
1223 } 1221 }
1224 b->width_table = Qnil; 1222 b->width_table = Qnil;
1225 b->prompt_end_charpos = Qnil;
1226 UNBLOCK_INPUT; 1223 UNBLOCK_INPUT;
1227 b->undo_list = Qnil; 1224 b->undo_list = Qnil;
1228 1225
@@ -1704,11 +1701,8 @@ so the buffer is truly empty after this.")
1704 () 1701 ()
1705{ 1702{
1706 Fwiden (); 1703 Fwiden ();
1707 1704
1708 if (INTEGERP (current_buffer->prompt_end_charpos)) 1705 del_range (BEG, Z);
1709 del_range (XINT (current_buffer->prompt_end_charpos), Z);
1710 else
1711 del_range (BEG, Z);
1712 1706
1713 current_buffer->last_window_start = 1; 1707 current_buffer->last_window_start = 1;
1714 /* Prevent warnings, or suspension of auto saving, that would happen 1708 /* Prevent warnings, or suspension of auto saving, that would happen