diff options
author | nyamatongwe <devnull@localhost> | 2011-06-07 11:30:23 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-07 11:30:23 +1000 |
commit | 50042e8d340a9a8f00028b850d18b721f19000c3 (patch) | |
tree | 248d96b255fba501cbb2dab2bc738617e94fd9ef /src/ContractionState.cxx | |
parent | a1c03d5935c15a8d5ea29fba20569900f1693b45 (diff) | |
download | scintilla-mirror-50042e8d340a9a8f00028b850d18b721f19000c3.tar.gz |
Make SCN_NEEDSHOWN notification work when word wrap is enabled.
This fixes the last remaining issue from bug #3291579.
From Marko Njezic
Diffstat (limited to 'src/ContractionState.cxx')
-rw-r--r-- | src/ContractionState.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index 8a1b486e7..4478f3844 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -168,6 +168,14 @@ bool ContractionState::SetVisible(int lineDocStart, int lineDocEnd, bool visible } } +bool ContractionState::HiddenLines() const { + if (OneToOne()) { + return false; + } else { + return !visible->AllSameAs(1); + } +} + bool ContractionState::GetExpanded(int lineDoc) const { if (OneToOne()) { return true; |