From d7555d071f92a765ea4023f25b14868f8ae64d4f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 21 May 2019 14:12:42 +0200 Subject: [PATCH] tweaks: adjust a comment and drop two others, and reshuffle two lines --- src/files.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/files.c b/src/files.c index 7848f417..20bbd942 100644 --- a/src/files.c +++ b/src/files.c @@ -496,18 +496,16 @@ bool open_buffer(const char *filename, bool new_buffer) } #ifdef ENABLE_SPELLER -/* Open the specified file, and if that succeeds, blow away the text of - * the current buffer and read the file contents into its place. */ +/* Open the specified file, and if that succeeds, remove the text of the marked + * region or of the entire buffer and read the file contents into its place. */ void replace_buffer(const char *filename, undo_type action, bool marked) { - FILE *f; - int descriptor; linestruct *was_cutbuffer = cutbuffer; + int descriptor; + FILE *f; - /* Open the file quietly. */ descriptor = open_file(filename, FALSE, TRUE, &f); - /* If opening failed, forget it. */ if (descriptor < 0) return;