ui: adapt scroll target value in code single file mode as workaround when view scrolls below last line

This commit is contained in:
Eberhard Graether
2018-04-21 04:30:55 +02:00
parent fe38cfff6a
commit 91b4e80384
4 changed files with 21 additions and 2 deletions
+1 -2
View File
@@ -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