From 721991050b0daf8e0a6a8668b2bc59e9394ce673 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Fri, 15 Mar 2013 14:49:31 +0000 Subject: textedit: correctly decrement the vertical scrollbar max limit when deleting a line --- examples/apps/ide/src/fpg_textedit.pas | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/apps/ide') diff --git a/examples/apps/ide/src/fpg_textedit.pas b/examples/apps/ide/src/fpg_textedit.pas index 86f4f6fb..9f456d66 100644 --- a/examples/apps/ide/src/fpg_textedit.pas +++ b/examples/apps/ide/src/fpg_textedit.pas @@ -1681,6 +1681,7 @@ begin if SLine = '' then // short circut the code block begin FLines.Delete(CaretPos.Y); + FVScrollBar.Max := FVScrollBar.Max - 1; end else begin -- cgit v1.2.3-70-g09d2