]> git.lyx.org Git - features.git/blobdiff - src/lyxfind.cpp
Comment a minor bug not worth fixing (#8986)
[features.git] / src / lyxfind.cpp
index 99e361ea47c6b7fb59d37441ddcd484fcd0a3f16..a1cab4caa5a73f2966bae81e542a915e635a5d8e 100644 (file)
@@ -232,7 +232,9 @@ pair<bool, int> 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);
        }