Fix editor search/replace feedback when replacing markup

This commit is contained in:
Chiizujin 2024-04-08 12:44:45 +10:00
parent 7f41e5a649
commit 68dd8e8174

View file

@ -673,13 +673,13 @@ class CmdEditorGroup(CmdEditorBase):
if not self.linerange: if not self.linerange:
caller.msg( caller.msg(
_("Search-replaced {arg1} -> {arg2} for lines {l1}-{l2}.").format( _("Search-replaced {arg1} -> {arg2} for lines {l1}-{l2}.").format(
arg1=self.arg1, arg2=self.arg2, l1=lstart + 1, l2=lend arg1=raw(self.arg1), arg2=raw(self.arg2), l1=lstart + 1, l2=lend
) )
) )
else: else:
caller.msg( caller.msg(
_("Search-replaced {arg1} -> {arg2} for {line}.").format( _("Search-replaced {arg1} -> {arg2} for {line}.").format(
arg1=self.arg1, arg2=self.arg2, line=self.lstr arg1=raw(self.arg1), arg2=raw(self.arg2), line=self.lstr
) )
) )
buf = linebuffer[:lstart] + sarea.split("\n") + linebuffer[lend:] buf = linebuffer[:lstart] + sarea.split("\n") + linebuffer[lend:]