aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-05-10 12:23:56 +1000
committerNeil <nyamatongwe@gmail.com>2022-05-10 12:23:56 +1000
commitc205c349ea3e7135d1da5c15831dbe687842453b (patch)
tree3799099ff2c608ccaa9150f7cd48a5ae87ae4dee /src/Editor.cxx
parentf82a2c25a5805d0dab5cd66ef221eb247bc36134 (diff)
downloadscintilla-mirror-c205c349ea3e7135d1da5c15831dbe687842453b.tar.gz
Support more than 2G lines with FoldAll.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 387194fe3..6ec2dea3e 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5536,7 +5536,7 @@ void Editor::FoldAll(FoldAction action) {
}
if (action == FoldAction::Toggle) {
// Discover current state
- for (int lineSeek = 0; lineSeek < maxLine; lineSeek++) {
+ for (Sci::Line lineSeek = 0; lineSeek < maxLine; lineSeek++) {
if (LevelIsHeader(pdoc->GetFoldLevel(lineSeek))) {
expanding = !pcs->GetExpanded(lineSeek);
break;
@@ -5545,7 +5545,7 @@ void Editor::FoldAll(FoldAction action) {
}
if (expanding) {
pcs->SetVisible(0, maxLine-1, true);
- for (int line = 0; line < maxLine; line++) {
+ for (Sci::Line line = 0; line < maxLine; line++) {
if (!pcs->GetExpanded(line)) {
SetFoldExpanded(line, true);
}