diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-11-16 12:40:48 +0000 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-11-16 12:40:48 +0000 |
commit | ba808322ec6be891930225b30b2705f697ac85cf (patch) | |
tree | 233edc74a4d288f4541fb27fa775fb67154e78a6 /scintilla/src/ContractionState.cxx | |
parent | 003bf1ed14a32a70f10efa9910f232160cc8e504 (diff) | |
download | notepad2-mod-ba808322ec6be891930225b30b2705f697ac85cf.zip notepad2-mod-ba808322ec6be891930225b30b2705f697ac85cf.tar.gz notepad2-mod-ba808322ec6be891930225b30b2705f697ac85cf.tar.bz2 |
update scintilla to v2.22
git-svn-id: https://notepad2-mod.googlecode.com/svn/trunk@196 28bd50df-7adb-d945-0439-6e466c6a13cc
Diffstat (limited to 'scintilla/src/ContractionState.cxx')
-rw-r--r-- | scintilla/src/ContractionState.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scintilla/src/ContractionState.cxx b/scintilla/src/ContractionState.cxx index 5782182..9be9c50 100644 --- a/scintilla/src/ContractionState.cxx +++ b/scintilla/src/ContractionState.cxx @@ -193,6 +193,23 @@ bool ContractionState::SetExpanded(int lineDoc, bool expanded_) { }
}
+int ContractionState::ContractedNext(int lineDocStart) const {
+ if (OneToOne()) {
+ return -1;
+ } else {
+ Check();
+ if (!expanded->ValueAt(lineDocStart)) {
+ return lineDocStart;
+ } else {
+ int lineDocNextChange = expanded->EndRun(lineDocStart);
+ if (lineDocNextChange < LinesInDoc())
+ return lineDocNextChange;
+ else
+ return -1;
+ }
+ }
+}
+
int ContractionState::GetHeight(int lineDoc) const {
if (OneToOne()) {
return 1;
|