Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Nov 22, 2023
1 parent f319b48 commit 332a113
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion scintilla/src/CallTip.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ int CallTip::PaintContents(Surface *surfaceWindow, bool draw) {
chunkHighlight.start -= lineStart;
chunkHighlight.end -= lineStart;

rcClient.top = static_cast<XYPOSITION>(ytext - ascent - 1);
const int top = ytext - ascent - 1;
rcClient.top = top;

int x = offsetText; // start each line at this inset

Expand Down
2 changes: 1 addition & 1 deletion scintilla/src/ChangeHistory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ constexpr bool InsertionSpanSameDeletion(const ChangeSpan &is, Sci::Position pos
is.start == positionDeletion &&
is.length == 0 &&
is.edition == edition;
};
}

}

Expand Down
3 changes: 1 addition & 2 deletions scintilla/src/EditView.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2268,8 +2268,7 @@ void DrawFoldLines(Surface *surface, const EditModel &model, const ViewStyle &vs
const ColourRGBA foldLineColour = vsDraw.ElementColour(Element::FoldLine).value_or(
vsDraw.markers[static_cast<int>(MarkerOutline::Folder)].fore);
// Paint the line above the fold
// Paint the line above the fold
if ((subLine == 0) && FlagSet(model.foldFlags, (expanded ? FoldFlag::LineBeforeContracted : FoldFlag::LineBeforeExpanded))) {
if ((subLine == 0) && FlagSet(model.foldFlags, (expanded ? FoldFlag::LineBeforeExpanded : FoldFlag::LineBeforeContracted))) {
surface->FillRectangleAligned(Side(rcLine, Edge::top, 1.0), foldLineColour);
}
// Paint the line below the fold
Expand Down
6 changes: 3 additions & 3 deletions scintilla/src/RESearch.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ const char *RESearch::DoCompile(const char *pattern, size_t length, FindOption f

case '[': { /* match char class */
int prevChar = 0;
bool negative = false; /* xor mask -CCL/NCL */
bool negative = false;/* xor mask -CCL/NCL */

i++;
++p;
Expand Down Expand Up @@ -907,7 +907,7 @@ Sci::Position RESearch::PMatch(const CharacterIndexer &ci, Sci::Position lp, Sci
break;
case REF: {
const int n = static_cast<uint8_t>(*ap++);
Sci::Position bp = bopat[n]; /* beginning of subpat... */
Sci::Position bp = bopat[n]; /* beginning of subpat... */
const Sci::Position ep = eopat[n]; /* ending of subpat... */
while (bp < ep) {
if (ci.CharAt(bp++) != ci.CharAt(lp++))
Expand Down Expand Up @@ -954,7 +954,7 @@ Sci::Position RESearch::PMatch(const CharacterIndexer &ci, Sci::Position lp, Sci
}
ap += n;

Sci::Position llp = lp; /* lazy lp for LCLO */
Sci::Position llp = lp; /* lazy lp for LCLO */
Sci::Position e = NOTFOUND; /* extra pointer for CLO */
while (llp >= are) {
const Sci::Position q = PMatch(ci, llp, endp, ap);
Expand Down

0 comments on commit 332a113

Please sign in to comment.