diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 6 | ||||
-rw-r--r-- | src/PerLine.cxx | 2 | ||||
-rw-r--r-- | src/PositionCache.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 2c7c2e5a2..81f3c1893 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5331,7 +5331,7 @@ void Editor::FoldLine(Sci::Line line, int action) { if (action == SC_FOLDACTION_CONTRACT) { const Sci::Line lineMaxSubord = pdoc->GetLastChild(line); if (lineMaxSubord > line) { - cs.SetExpanded(line, 0); + cs.SetExpanded(line, false); cs.SetVisible(line + 1, lineMaxSubord, false); const Sci::Line lineCurrent = pdoc->LineFromPosition(sel.MainCaret()); @@ -5346,7 +5346,7 @@ void Editor::FoldLine(Sci::Line line, int action) { EnsureLineVisible(line, false); GoToLine(line); } - cs.SetExpanded(line, 1); + cs.SetExpanded(line, true); ExpandLine(line); } @@ -5419,7 +5419,7 @@ void Editor::EnsureLineVisible(Sci::Line lineDoc, bool enforcePolicy) { if (lineDoc != lineParent) EnsureLineVisible(lineParent, enforcePolicy); if (!cs.GetExpanded(lineParent)) { - cs.SetExpanded(lineParent, 1); + cs.SetExpanded(lineParent, true); ExpandLine(lineParent); } } diff --git a/src/PerLine.cxx b/src/PerLine.cxx index f26b48b77..41e767ab7 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -385,7 +385,7 @@ bool LineAnnotation::MultipleStyles(Sci::Line line) const { if (annotations.Length() && (line >= 0) && (line < annotations.Length()) && annotations[line]) return reinterpret_cast<AnnotationHeader *>(annotations[line])->style == IndividualStyles; else - return 0; + return false; } int LineAnnotation::Style(Sci::Line line) const { diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 6df915b8b..fff1d58a6 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -55,7 +55,7 @@ LineLayout::LineLayout(int maxLineLength_) : numCharsBeforeEOL(0), validity(llInvalid), xHighlightGuide(0), - highlightColumn(0), + highlightColumn(false), containsCaret(false), edgeColumn(0), chars(0), |