aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-10-14 20:42:26 +0000
committerRichard M. Stallman1995-10-14 20:42:26 +0000
commit26fb39b5ef70defc0559f5f6b06b457afbf2cee7 (patch)
treed8714f6619f58f4b876c905d06040e62f27d1b3a
parent9cda4f7cdda9c8de192d6bfc6b659d3f87c96aa8 (diff)
downloademacs-26fb39b5ef70defc0559f5f6b06b457afbf2cee7.tar.gz
emacs-26fb39b5ef70defc0559f5f6b06b457afbf2cee7.zip
(Finsert_file_contents): If replacing,
set selected_window->start_at_line_beg.
-rw-r--r--src/fileio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index f8469cbd821..f6f99e5e305 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2971,6 +2971,10 @@ and (2) it puts less data in the undo list.")
2971 Otherwise loop around and scan the preceding bufferfull. */ 2971 Otherwise loop around and scan the preceding bufferfull. */
2972 if (bufpos != 0) 2972 if (bufpos != 0)
2973 break; 2973 break;
2974 /* If display current starts at beginning of line,
2975 keep it that way. */
2976 if (XBUFFER (XWINDOW (selected_window)->buffer) == current_buffer)
2977 XWINDOW (selected_window)->start_at_line_beg = Fbolp ();
2974 } 2978 }
2975 immediate_quit = 0; 2979 immediate_quit = 0;
2976 2980