diff options
author | Neil <nyamatongwe@gmail.com> | 2020-07-16 09:27:55 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-07-16 09:27:55 +1000 |
commit | c2c917c1b04cbe1ad3bc61ca6a0d51d45b32c0d0 (patch) | |
tree | 4f0b7cafa66064c6a9c9254b2f50f8ac2c55dd10 /src/Editor.cxx | |
parent | 47aa162ca1136d96dea71ceab3ad440f16ede1fb (diff) | |
download | scintilla-mirror-c2c917c1b04cbe1ad3bc61ca6a0d51d45b32c0d0.tar.gz |
Rename validLevel to ValidLevel and make an enum class.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 9b5fa9d6f..763940389 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -274,7 +274,7 @@ void Editor::InvalidateStyleData() { vs.technology = technology; DropGraphics(false); AllocateGraphics(); - view.llc.Invalidate(LineLayout::llInvalid); + view.llc.Invalidate(LineLayout::ValidLevel::invalid); view.posCache.Clear(); } @@ -1477,7 +1477,7 @@ bool Editor::Wrapping() const noexcept { void Editor::NeedWrapping(Sci::Line docLineStart, Sci::Line docLineEnd) { //Platform::DebugPrintf("\nNeedWrapping: %0d..%0d\n", docLineStart, docLineEnd); if (wrapPending.AddRange(docLineStart, docLineEnd)) { - view.llc.Invalidate(LineLayout::llPositions); + view.llc.Invalidate(LineLayout::ValidLevel::positions); } // Wrap lines during idle. if (Wrapping() && wrapPending.NeedsWrap()) { @@ -2528,7 +2528,7 @@ void Editor::NotifySavePoint(Document *, void *, bool atSavePoint) { void Editor::CheckModificationForWrap(DocModification mh) { if (mh.modificationType & (SC_MOD_INSERTTEXT | SC_MOD_DELETETEXT)) { - view.llc.Invalidate(LineLayout::llCheckTextAndStyle); + view.llc.Invalidate(LineLayout::ValidLevel::checkTextAndStyle); const Sci::Line lineDoc = pdoc->SciLineFromPosition(mh.position); const Sci::Line lines = std::max(static_cast<Sci::Line>(0), mh.linesAdded); if (Wrapping()) { @@ -2607,7 +2607,7 @@ void Editor::NotifyModified(Document *, DocModification mh, void *) { } } if (mh.modificationType & SC_MOD_CHANGESTYLE) { - view.llc.Invalidate(LineLayout::llCheckTextAndStyle); + view.llc.Invalidate(LineLayout::ValidLevel::checkTextAndStyle); } } else { // Move selection and brace highlights |