]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNest.cpp
Allow automatic text direction in Painter::text()
[lyx.git] / src / mathed / InsetMathNest.cpp
index 473457d71ca016bd8568d1f0b43a24faf96e90b8..493f529d1e8c774606fed3fddb719d6fad7d6ca8 100644 (file)
@@ -735,10 +735,17 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
        }
 
        case LFUN_MOUSE_DOUBLE:
-       case LFUN_MOUSE_TRIPLE:
        case LFUN_WORD_SELECT:
                cur.pos() = 0;
+               cur.resetAnchor();
+               cur.setSelection(true);
+               cur.pos() = cur.lastpos();
+               cur.bv().cursor() = cur;
+               break;
+
+       case LFUN_MOUSE_TRIPLE:
                cur.idx() = 0;
+               cur.pos() = 0;
                cur.resetAnchor();
                cur.setSelection(true);
                cur.idx() = cur.lastidx();
@@ -2164,6 +2171,7 @@ MathCompletionList::MathCompletionList(Cursor const & cur)
        globals.push_back(from_ascii("\\sqrt"));
        globals.push_back(from_ascii("\\root"));
        globals.push_back(from_ascii("\\tabular"));
+       globals.push_back(from_ascii("\\sideset"));
        globals.push_back(from_ascii("\\stackrel"));
        globals.push_back(from_ascii("\\stackrelthree"));
        globals.push_back(from_ascii("\\binom"));