commit f52eb9d8233110414088bba8b31d45274666ad5c
Author: Scott Kostyshak <[email protected]>
Date: Wed Feb 19 16:18:28 2014 -0500
Comment a minor bug not worth fixing (#8986)
diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index 99e361e..a1cab4c 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -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);
}