tweaks: remove an unneeded setting and unsetting of a flag

This twiddling was made superfluous by commit faa0eb99 from a year ago.
master
Benno Schulenberg 2019-05-21 13:47:44 +02:00
parent 1e2e6733df
commit 1128a40d42
1 changed files with 0 additions and 8 deletions

View File

@ -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"));
}