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 | 97782cf42d51d2834a9a92f460a1cb7d483f09d7 (patch) | |
| tree | 7612f060f90404a275dde3aa13b04ced62191bd5 /src/Editor.cxx | |
| parent | 86fc59c515f92eb9407e5f981eab1f4d04a6d97e (diff) | |
| download | scintilla-mirror-97782cf42d51d2834a9a92f460a1cb7d483f09d7.tar.gz | |
Backport: Rename validLevel to ValidLevel and make an enum class.
Backport of changeset 8412:999c4c848b8f.
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 dad2bf8bb..35bcec9d7 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -273,7 +273,7 @@ void Editor::InvalidateStyleData() { vs.technology = technology; DropGraphics(false); AllocateGraphics(); - view.llc.Invalidate(LineLayout::llInvalid); + view.llc.Invalidate(LineLayout::ValidLevel::invalid); view.posCache.Clear(); } @@ -1473,7 +1473,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()) { @@ -2524,7 +2524,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()) { @@ -2603,7 +2603,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 |
