#include "frontends/LyXView.h"
#include "frontends/Alert.h"
+#include "mathed/math_cursor.h"
#include "support/lstrings.h"
#include "Lsstream.h"
if (test_only)
return text->changeDepth(type, true);
- bv->hideCursor();
bv->update(BufferView::SELECT);
bool const changed = text->changeDepth(type, false);
if (text->inset_owner)
if (!bv->available())
return string();
+ if (mathcursor)
+ return mathcursor->info();
+
ostringstream state;
LyXText * text = bv->getLyXText();
if (!text)
return;
- bv->hideCursor();
bv->update(text, BufferView::SELECT);
text->toggleFree(font, toggleall);
bv->update(text, BufferView::SELECT);
LyXCursor & cursor = text->cursor;
text->computeBidiTables(bv->buffer(), cursor.row());
if (cursor.boundary() !=
- text->isBoundary(bv->buffer(), cursor.par(), cursor.pos(),
+ text->isBoundary(bv->buffer(), *cursor.par(), cursor.pos(),
text->real_current_font))
text->setCursor(cursor.par(), cursor.pos(),
false, !cursor.boundary());