X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfunc.C;h=750d2c210026a8141f171e64645863c7ff3902b0;hb=c544107e324090c6eafb4c56749da2624b9b1122;hp=1ca0cdce07b0926aa2752f540e3801858d1449fa;hpb=bee8db371feea9052879a42bc5b9a3f2f82e372e;p=lyx.git diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 1ca0cdce07..750d2c2100 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -115,12 +115,9 @@ LyXFunc::LyXFunc(LyXView * o) 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(); } @@ -139,7 +136,7 @@ void LyXFunc::handleKeyFunc(kb_action action) // actions keyseq.clear(); // copied verbatim from do_accent_char - view()->update(view()->getLyXText(), BufferView::SELECT); + view()->update(); view()->getLyXText()->selection.cursor = view()->getLyXText()->cursor; } @@ -918,7 +915,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose) #endif moveCursorUpdate(); } else { - view()->update(view()->text, BufferView::SELECT); + view()->update(); } owner->clearMessage(); goto exit_with_message; @@ -1026,7 +1023,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose) case LFUN_PREFIX: if (view()->available() && !view()->theLockingInset()) - view()->update(view()->text, BufferView::SELECT); + view()->update(); owner->message(keyseq.printOptions()); break; @@ -1535,7 +1532,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose) // if values really changed...but not very important right now. (Lgb) // All visible buffers will need resize view()->resize(); - view()->repaint(); + view()->update(); } break; @@ -1574,7 +1571,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose) #endif } - view()->repaint(); + view()->update(); break; }