if (bv_->getLyXText()) {
// check needed to survive LyX startup
bv_->getLyXText()->redoCursor();
- fitCursor();
}
screen().redraw(*bv_);
}
beforeChange(text);
int const half_height = workarea().workHeight() / 2;
- int new_y = 0;
-
- if (text->cursor.y() > half_height)
- new_y = text->cursor.y() - half_height;
+ int new_y = std::max(0, text->cursor.y() - half_height);
// FIXME: look at this comment again ...
+2003-09-02 Alfredo Braunstein <abraunst@libero.it>
+
+ * BufferView_pimpl.C (update): remove bogus fitCursor() call
+
2003-09-02 Lars Gullik Bjønnes <larsbj@gullik.net>
* buffer.C (readFile): new function, take a filename and a