nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit d7555d071f92a765ea4023f25b14868f8ae64d4f
parent 9596f7de9d283110d2e03aa3dd4267c9eb79ccc5
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 21 May 2019 14:12:42 +0200

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

Diffstat:
Msrc/files.c | 10++++------
1 file changed, 4 insertions(+), 6 deletions(-)

diff --git 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;