Set advanced repl_buffer internal as well (#12246)

This commit is contained in:
Juergen Spitzmueller 2021-04-12 09:21:57 +02:00
parent 9a32d7b07c
commit 4d21c899a8

View File

@ -1455,6 +1455,7 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M
repl_buffer_orig.write(oss); repl_buffer_orig.write(oss);
string lyx = oss.str(); string lyx = oss.str();
Buffer repl_buffer("", false); Buffer repl_buffer("", false);
repl_buffer.setInternal(true);
repl_buffer.setUnnamed(true); repl_buffer.setUnnamed(true);
LASSERT(repl_buffer.readString(lyx), return); LASSERT(repl_buffer.readString(lyx), return);
if (opt.keep_case && sel_len >= 2) { if (opt.keep_case && sel_len >= 2) {