changeset 13221:994440ef957f

(Finsert_file_contents): If replacing, set selected_window->start_at_line_beg.
author Richard M. Stallman <rms@gnu.org>
date Sat, 14 Oct 1995 20:42:26 +0000
parents 2e9014617492
children 93a5a82b3b75
files src/fileio.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Sat Oct 14 05:54:16 1995 +0000
+++ b/src/fileio.c	Sat Oct 14 20:42:26 1995 +0000
@@ -2971,6 +2971,10 @@
 	     Otherwise loop around and scan the preceding bufferfull.  */
 	  if (bufpos != 0)
 	    break;
+	  /* If display current starts at beginning of line,
+	     keep it that way.  */
+	  if (XBUFFER (XWINDOW (selected_window)->buffer) == current_buffer)
+	    XWINDOW (selected_window)->start_at_line_beg = Fbolp ();
 	}
       immediate_quit = 0;