+ bv->text->ToggleFree(bv, font, toggleall);
+ bv->update(BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
+
+ if (font.language() != ignore_language ||
+ font.latex() != LyXFont::IGNORE) {
+ LyXText * text = bv->text;
+ LyXCursor & cursor = text->cursor;
+ text->ComputeBidiTables(bv->buffer(), cursor.row());
+ if (cursor.boundary() !=
+ text->IsBoundary(bv->buffer(), cursor.par(), cursor.pos(),
+ text->real_current_font) )
+ text->SetCursor(bv, cursor.par(), cursor.pos(),
+ false, !cursor.boundary());
+ }