From f52eb9d8233110414088bba8b31d45274666ad5c Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 19 Feb 2014 16:18:28 -0500 Subject: [PATCH] Comment a minor bug not worth fixing (#8986) --- src/lyxfind.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 99e361ea47..a1cab4caa5 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -232,7 +232,9 @@ pair replaceOne(BufferView * bv, docstring searchstr, if (!cur.inTexted()) // bail in math return make_pair(false, 0); - // select current word and treat it as the search string + // select current word and treat it as the search string. + // This causes a minor bug as undo will restore this selection, + // which the user did not create (#8986). cur.innerText()->selectWord(cur, WHOLE_WORD); searchstr = cur.selectionAsString(false); } -- 2.39.2