tweaks: adjust a comment and drop two others, and reshuffle two lines

master
Benno Schulenberg 2019-05-21 14:12:42 +02:00
parent 9596f7de9d
commit d7555d071f
1 changed files with 4 additions and 6 deletions

View File

@ -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;