]> git.lyx.org Git - features.git/commitdiff
allow extending a selection to outside a math inset (broken since r22930)
authorDov Feldstern <dov@lyx.org>
Sun, 6 Apr 2008 20:11:05 +0000 (20:11 +0000)
committerDov Feldstern <dov@lyx.org>
Sun, 6 Apr 2008 20:11:05 +0000 (20:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24143 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathNest.cpp

index 2ba467d3f5981a9301bc091b02ff8f4e8fa2dfa5..1872799a3869ca585c7609fef91ff7761cc9459a 100644 (file)
@@ -1757,7 +1757,7 @@ bool InsetMathNest::cursorMathForward(Cursor & cur)
                cur.inset().idxFirst(cur);
                return true;
        } 
-       if (cur.posForward() || idxForward(cur) || cur.selection())
+       if (cur.posForward() || idxForward(cur))
                return true;
        // try to pop forwards --- but don't pop out of math! leave that to
        // the FINISH lfuns
@@ -1776,7 +1776,7 @@ bool InsetMathNest::cursorMathBackward(Cursor & cur)
                cur.inset().idxLast(cur);
                return true;
        } 
-       if (cur.posBackward() || idxBackward(cur) || cur.selection())
+       if (cur.posBackward() || idxBackward(cur))
                return true;
        // try to pop backwards --- but don't pop out of math! leave that to 
        // the FINISH lfuns