aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Editor.cxx2
-rw-r--r--win32/ScintillaWin.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 9cf3c31b3..2331e64e0 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1411,7 +1411,7 @@ void Editor::NeedWrapping(int docLineStartWrapping, int docLineEndWrapping) {
docLastLineToWrap = pdoc->LinesTotal();
}
// Wrap lines during idle.
- if (docLastLineToWrap != docLineLastWrapped) {
+ if (backgroundWrapEnabled && docLastLineToWrap != docLineLastWrapped ) {
SetIdle(true);
}
}
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 9c2d78e1c..097b8a84f 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -914,7 +914,7 @@ bool ScintillaWin::SetIdle(bool on) {
// and are only posted when the message queue is empty, i.e. during idle time.
if (idler.state != on) {
if (on) {
- idler.idlerID = ::SetTimer(MainHWND(), idleTimerID, 20, NULL)
+ idler.idlerID = ::SetTimer(MainHWND(), idleTimerID, 10, NULL)
? reinterpret_cast<IdlerID>(idleTimerID) : 0;
} else {
::KillTimer(MainHWND(), reinterpret_cast<uptr_t>(idler.idlerID));