ui: adapt scroll target value in code single file mode as workaround when view scrolls below last line
This commit is contained in:
@@ -274,8 +274,7 @@ void QtCodeArea::lineNumberAreaPaintEvent(QPaintEvent *event)
|
||||
|
||||
int QtCodeArea::lineNumberDigits() const
|
||||
{
|
||||
int max = qMax(1, int(getStartLineNumber()) + blockCount());
|
||||
return utility::digits(max);
|
||||
return utility::digits(getEndLineNumber());
|
||||
}
|
||||
|
||||
int QtCodeArea::lineNumberAreaWidth() const
|
||||
|
||||
Reference in New Issue
Block a user