commit c6a2664106d0676aee6d4555b640e4ab4540a65c
parent 4ab80abb5e769ca4c20e6321d3f10c9142c98974
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 4 Mar 2024 16:15:27 +0100
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.
Diffstat:
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git a/src/search.c b/src/search.c
@@ -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;
}