aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 630a6f69e..878ecc24f 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1541,7 +1541,7 @@ bool Editor::WrapLines(WrapScope ws) {
}
} else if (ws == WrapScope::wsIdle) {
// Try to keep time taken by wrapping reasonable so interaction remains smooth.
- const double secondsAllowed = 0.01;
+ constexpr double secondsAllowed = 0.01;
const Sci::Line linesInAllowedTime = Sci::clamp(
static_cast<Sci::Line>(secondsAllowed / durationWrapOneLine.Duration()),
LinesOnScreen() + 50, static_cast<Sci::Line>(0x10000));