void BufferView::showCursor(DocIterator const & dit, bool recenter)
{
if (scrollToCursor(dit, recenter)) {
- buffer_.changed(false);
+ buffer_.changed(true);
updateHoveredInset();
}
}
void BufferView::scrollToCursor()
{
- if (scrollToCursor(d->cursor_, false))
+ if (scrollToCursor(d->cursor_, false)) {
+ buffer_.changed(true);
updateHoveredInset();
+ }
}
scrolled = scrollDown(ypos - height_ + defaultRowHeight() );
// else, nothing to do, the cursor is already visible so we just return.
- if (scrolled != 0) {
- updateMetrics();
- return true;
- }
- return false;
+ return scrolled != 0;
}
// fix inline completion position
else
d->anchor_ypos_ = defaultRowHeight() * 2;
- updateMetrics();
return true;
}
buffer_view_->resize(viewport()->width(), viewport()->height());
if (cursor_in_view)
buffer_view_->scrollToCursor();
- updateScreen();
+ else
+ updateScreen();
// Update scrollbars which might have changed due different
// BufferView dimension. This is especially important when the