From: Scott Kostyshak Date: Wed, 19 Feb 2014 21:18:28 +0000 (-0500) Subject: Comment a minor bug not worth fixing (#8986) X-Git-Tag: 2.1.0rc1~182 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f52eb9d8233110414088bba8b31d45274666ad5c;p=lyx.git Comment a minor bug not worth fixing (#8986) --- 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); }