From fbcdd456e7aaebcfccd63382bc28b17e3e445626 Mon Sep 17 00:00:00 2001 From: martin Date: Fri, 2 Jan 2009 14:49:58 +0000 Subject: [PATCH] SynEdit: fix for redrawing fold gutter (offset after end-node would sometimes be ignored) git-svn-id: trunk@18049 - --- components/synedit/synguttercodefolding.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/synedit/synguttercodefolding.pp b/components/synedit/synguttercodefolding.pp index 39fdcfe2d2..727ce0c401 100644 --- a/components/synedit/synguttercodefolding.pp +++ b/components/synedit/synguttercodefolding.pp @@ -147,6 +147,8 @@ begin if not Visible then exit; LineHeight := TSynEdit(FEdit).LineHeight; LineOffset := 0; + if (iLine > 0) and (FFoldView.FoldType[iLine-1] = cfEnd) then + LineOffset := 2; BoxSize := Min(Width, LineHeight - cNodeOffset*2); if MarkupInfoCodeFoldingTree.Background <> clNone then