commit 1128a40d420290b8ecfb919a9df390add0ede980
parent 1e2e6733df261f2b64349d0287e7481f0c518e3a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 21 May 2019 13:47:44 +0200
tweaks: remove an unneeded setting and unsetting of a flag
This twiddling was made superfluous by commit faa0eb99 from a year ago.
Diffstat:
1 file changed, 0 insertions(+), 8 deletions(-)
diff --git a/src/files.c b/src/files.c
@@ -547,7 +547,6 @@ void replace_marked_buffer(const char *filename)
{
FILE *f;
int descriptor;
- bool using_magicline = !ISSET(NO_NEWLINES);
linestruct *was_cutbuffer = cutbuffer;
descriptor = open_file(filename, FALSE, TRUE, &f);
@@ -555,9 +554,6 @@ void replace_marked_buffer(const char *filename)
if (descriptor < 0)
return;
- /* Don't add a magic line when replacing text in the buffer. */
- SET(NO_NEWLINES);
-
add_undo(COUPLE_BEGIN);
openfile->undotop->strdata = mallocstrcpy(NULL, _("spelling correction"));
@@ -572,10 +568,6 @@ void replace_marked_buffer(const char *filename)
/* Insert the processed file where the marked text was. */
read_file(f, descriptor, filename, TRUE);
- /* Restore the magic-line behavior now that we're done fiddling. */
- if (using_magicline)
- UNSET(NO_NEWLINES);
-
add_undo(COUPLE_END);
openfile->undotop->strdata = mallocstrcpy(NULL, _("spelling correction"));
}