]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 f8469cbd82165ecf0900061974132bb1c1b672d1..f6f99e5e3056751d5656c25026c97cc31c197ea7 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;