diff options
author | nyamatongwe <unknown> | 2011-06-07 11:30:23 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-07 11:30:23 +1000 |
commit | cfd7180e33b49c884738f4975584f0d010a28b99 (patch) | |
tree | 50f88b12e28928c8d9f2daeb5a30ae5183e92dd7 /src/ContractionState.cxx | |
parent | bd88866db20ffb28513e713957ba8c27e47a8a08 (diff) | |
download | scintilla-mirror-cfd7180e33b49c884738f4975584f0d010a28b99.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; |