]> git.lyx.org Git - features.git/commitdiff
Comment a minor bug not worth fixing (#8986)
authorScott Kostyshak <skostysh@lyx.org>
Wed, 19 Feb 2014 21:18:28 +0000 (16:18 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Wed, 19 Feb 2014 21:21:46 +0000 (16:21 -0500)
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);
        }