From 4d21c899a88dc561c8bce48b2ef6b391ed3da2d7 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 12 Apr 2021 09:21:57 +0200 Subject: [PATCH] Set advanced repl_buffer internal as well (#12246) --- src/lyxfind.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index a3a0b8be50..51f1b90a72 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -1455,6 +1455,7 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M repl_buffer_orig.write(oss); string lyx = oss.str(); Buffer repl_buffer("", false); + repl_buffer.setInternal(true); repl_buffer.setUnnamed(true); LASSERT(repl_buffer.readString(lyx), return); if (opt.keep_case && sel_len >= 2) {