comparison src/fileio.c @ 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 e1d400bc526e
children 3a69848f7892
comparison
equal deleted inserted replaced
13220:2e9014617492 13221:994440ef957f
2969 same_at_end--, bufpos--; 2969 same_at_end--, bufpos--;
2970 /* If we found a discrepancy, stop the scan. 2970 /* If we found a discrepancy, stop the scan.
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
2977 /* Don't try to reuse the same piece of text twice. */ 2981 /* Don't try to reuse the same piece of text twice. */
2978 overlap = same_at_start - BEGV - (same_at_end + st.st_size - ZV); 2982 overlap = same_at_start - BEGV - (same_at_end + st.st_size - ZV);