mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 04:41:21 +03:00
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:
parent
4ab80abb5e
commit
c6a2664106
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user