Rename BufferView::updateScrollbar to show what does

Only parameters are updated, not the scrollbar itself.
This commit is contained in:
Jean-Marc Lasgouttes 2021-10-29 17:44:32 +02:00
parent 47b394f2c5
commit 110445e3e2
2 changed files with 4 additions and 4 deletions

View File

@ -583,7 +583,7 @@ void BufferView::processUpdateFlags(Update::flags flags)
}
void BufferView::updateScrollbar()
void BufferView::updateScrollbarParameters()
{
if (height_ == 0 && width_ == 0)
return;
@ -3483,7 +3483,7 @@ void BufferView::draw(frontend::Painter & pain, bool paint_caret)
// The scrollbar needs an update.
// FIXME: does it always? see ticket #11947.
updateScrollbar();
updateScrollbarParameters();
// Normalize anchor for next time
pair<pit_type, ParagraphMetrics const *> firstpm = tm.first();

View File

@ -155,8 +155,8 @@ public:
int horizScrollOffset(Text const * text,
pit_type pit, pos_type pos) const;
/// reset the scrollbar to reflect current view position.
void updateScrollbar();
/// reset the scrollbar parameters to reflect current view position.
void updateScrollbarParameters();
/// return the Scrollbar Parameters.
ScrollbarParameters const & scrollbarParameters() const;
/// \return Tool tip for the given position.