diff options
author | nyamatongwe <devnull@localhost> | 2011-04-16 19:50:45 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-04-16 19:50:45 +1000 |
commit | 60a39b1f645752549bddc6b7026e6ff44ac95433 (patch) | |
tree | 15ad3a37676ce4bb532dbf9efb7f2a3c01cac55b /src/Document.h | |
parent | 884ae7980c1f6e8a749462c3ff1b7f2f2f4d0532 (diff) | |
download | scintilla-mirror-60a39b1f645752549bddc6b7026e6ff44ac95433.tar.gz |
Better highlight drawing where fold header has no subordinates. Bug #3279730.
From Jérôme LAFORGE.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Document.h b/src/Document.h index 851c10081..125a4a0a6 100644 --- a/src/Document.h +++ b/src/Document.h @@ -130,7 +130,7 @@ public: } bool isCurrentBlockHighlight(int line) { - return isEnabled && beginFoldBlock <= line && line <= endFoldBlock; + return isEnabled && beginFoldBlock != -1 && beginFoldBlock <= line && line <= endFoldBlock; } bool isHeadBlockFold(int line) { @@ -138,17 +138,17 @@ public: } bool isBodyBlockFold(int line) { - return beginFoldBlock < line && line < endFoldBlock; + return beginFoldBlock != -1 && beginFoldBlock < line && line < endFoldBlock; } bool isTailBlockFold(int line) { - return beginFoldBlock < line && line == endFoldBlock; + return beginFoldBlock != -1 && beginFoldBlock < line && line == endFoldBlock; } // beginFoldBlock : Begin of current fold block. - // endStartBlock : End of zone where margin is already drawn. - // beginMarginCorrectlyDrawnZone : Begin of zone where margin is already drawn. - // endMarginCorrectlyDrawnZone : End of current fold block. + // endStartBlock : End of current fold block. + // beginMarginCorrectlyDrawnZone : Begin of zone where margin is correctly drawn. + // endMarginCorrectlyDrawnZone : End of zone where margin is correctly drawn. int beginFoldBlock; int endFoldBlock; int beginMarginCorrectlyDrawnZone; |