aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 763940389..1ece08feb 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1471,7 +1471,7 @@ void Editor::UpdateSystemCaret() {
}
bool Editor::Wrapping() const noexcept {
- return vs.wrapState != eWrapNone;
+ return vs.wrapState != WrapMode::none;
}
void Editor::NeedWrapping(Sci::Line docLineStart, Sci::Line docLineEnd) {
@@ -6378,11 +6378,11 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
return view.printParameters.colourMode;
case SCI_SETPRINTWRAPMODE:
- view.printParameters.wrapState = (wParam == SC_WRAP_WORD) ? eWrapWord : eWrapNone;
+ view.printParameters.wrapState = (wParam == SC_WRAP_WORD) ? WrapMode::word : WrapMode::none;
break;
case SCI_GETPRINTWRAPMODE:
- return view.printParameters.wrapState;
+ return static_cast<sptr_t>(view.printParameters.wrapState);
case SCI_GETSTYLEAT:
if (static_cast<Sci::Position>(wParam) >= pdoc->Length())
@@ -6686,7 +6686,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
break;
case SCI_GETWRAPMODE:
- return vs.wrapState;
+ return static_cast<sptr_t>(vs.wrapState);
case SCI_SETWRAPVISUALFLAGS:
if (vs.SetWrapVisualFlags(static_cast<int>(wParam))) {