X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.cpp;h=3ad16f49ffae594d6add6982b5457586fccf2198;hb=4db3e641ed6765e005343010cb90ee8af26f8f99;hp=282087711b882f1e0be36ad3abfe8f245f918da9;hpb=418e884680ceee09934359053f072aa8d91f07e8;p=lyx.git diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 282087711b..3ad16f49ff 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -187,7 +187,7 @@ bool bruteFind(Cursor & cursor, } */ - +/* /// moves position closest to (x, y) in given box bool bruteFind3(Cursor & cur, int x, int y, bool up) { @@ -249,7 +249,7 @@ bool bruteFind3(Cursor & cur, int x, int y, bool up) cur.setCursor(best_cursor); return true; } - +*/ } // namespace anon @@ -460,14 +460,14 @@ DispatchResult const & Cursor::result() const BufferView & Cursor::bv() const { - LBUFERR(bv_, _("Cursor has no BufferView!")); + LBUFERR(bv_); return *bv_; } void Cursor::pop() { - LBUFERR(depth() >= 1, _("Attempt to pop empty cursor!")); + LBUFERR(depth() >= 1); pop_back(); } @@ -2048,12 +2048,8 @@ bool Cursor::upDownInText(bool up, bool & updateNeeded) updateNeeded |= bv().checkDepm(dummy, *this); updateTextTargetOffset(); - if (updateNeeded) { + if (updateNeeded) forceBufferUpdate(); - // DEPM may have requested a screen update - this->screenUpdateFlags( - this->screenUpdate() | dummy.screenUpdate()); - } } return false; } @@ -2078,8 +2074,7 @@ bool Cursor::upDownInText(bool up, bool & updateNeeded) ++dummy.pos(); if (bv().checkDepm(dummy, old)) { updateNeeded = true; - // Make sure that cur gets back whatever happened to dummy (Lgb) - // This will include any screen update requested by DEPM + // Make sure that cur gets back whatever happened to dummy (Lgb) operator=(dummy); } } else {