(Finsert_file_contents): If replacing,
authorRichard M. Stallman <rms@gnu.org>
Sat, 14 Oct 1995 20:42:26 +0000 (20:42 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 14 Oct 1995 20:42:26 +0000 (20:42 +0000)
set selected_window->start_at_line_beg.

src/fileio.c

index f8469cb..f6f99e5 100644 (file)
@@ -2971,6 +2971,10 @@ and (2) it puts less data in the undo list.")
             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;