void LyXFunc::moveCursorUpdate()
{
LyXText * lt = view()->text;
- if (lt->selection.mark()) {
+ if (lt->selection.mark())
lt->setSelection();
- if (!lt->isInInset())
- view()->repaint();
- }
- view()->update(lt, BufferView::SELECT);
+ view()->update();
view()->switchKeyMap();
}
// actions
keyseq.clear();
// copied verbatim from do_accent_char
- view()->update(view()->getLyXText(), BufferView::SELECT);
+ view()->update();
view()->getLyXText()->selection.cursor = view()->getLyXText()->cursor;
}
#endif
moveCursorUpdate();
} else {
- view()->update(view()->text, BufferView::SELECT);
+ view()->update();
}
owner->clearMessage();
goto exit_with_message;
case LFUN_PREFIX:
if (view()->available() && !view()->theLockingInset())
- view()->update(view()->text, BufferView::SELECT);
+ view()->update();
owner->message(keyseq.printOptions());
break;
// if values really changed...but not very important right now. (Lgb)
// All visible buffers will need resize
view()->resize();
- view()->repaint();
+ view()->update();
}
break;
#endif
}
- view()->repaint();
+ view()->update();
break;
}