]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_cursor.C
M-m <space> as substitute for the old C-<space> <space> 'enlarge space'
[features.git] / src / mathed / math_cursor.C
index bba13ac2e461a10782831660c2e0754e47ce6ef4..ca5852a3ca87b3fa169312d70a062fb38ba426ad 100644 (file)
@@ -1103,6 +1103,14 @@ MathUpDownInset * MathCursor::prevUpDownInset() const
 }
 
 
+MathSpaceInset * MathCursor::prevSpaceInset() const
+{
+       normalize();
+       MathInset * p = array().prevInset(cursor().pos_);
+       return (p && p->isSpaceInset()) ? static_cast<MathSpaceInset *>(p) : 0;
+}
+
+
 MathArray & MathCursor::array() const
 {
        static MathArray dummy;