}
*/
-
+/*
/// moves position closest to (x, y) in given box
bool bruteFind3(Cursor & cur, int x, int y, bool up)
{
cur.setCursor(best_cursor);
return true;
}
-
+*/
} // namespace anon
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();
}
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;
}
++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 {