tweaks: delete a redundant fragment of code from do_replace_loop()

Since commit 50954a4b from a year and a half ago, a replacing session
will not ever change the final empty line, so a fresh magic line will
never be needed.
This commit is contained in:
Benno Schulenberg 2024-03-04 16:15:27 +01:00
parent 4ab80abb5e
commit c6a2664106
1 changed files with 0 additions and 5 deletions

View File

@ -681,11 +681,6 @@ ssize_t do_replace_loop(const char *needle, bool whole_word_only,
openfile->mark = was_mark;
#endif
/* If "automatic newline" is enabled, and text has been added to the
* magic line, make a new magic line. */
if (!ISSET(NO_NEWLINES) && openfile->filebot->data[0] != '\0')
new_magicline();
return numreplaced;
}