]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_cursor.C
forward search in math insets. ugly. seems to work. don't ask why.
[lyx.git] / src / mathed / math_cursor.C
index efd13f33b7bb07029b1fc504f2220b124aaf87b6..24e53be5706875371cc42776402f70bb20f4cf50 100644 (file)
@@ -1449,3 +1449,10 @@ void MathCursor::stripFromLastEqualSign()
 }
 
 
+void MathCursor::setSelection(cursor_type const & where, size_type n)
+{
+       selection_ = true;
+       Anchor_ = where;
+       Cursor_ = where;
+       cursor().pos_ += n;
+}