diff options
author | nyamatongwe <unknown> | 2003-11-06 08:33:47 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-11-06 08:33:47 +0000 |
commit | 18f99b99b3209aee3daa295aad70ef3f0a086552 (patch) | |
tree | e7813832299f7367c1b4c0eceabfe27a26a087f2 | |
parent | 13a33765368eb68820d650c3146888103ed1d3f0 (diff) | |
download | scintilla-mirror-18f99b99b3209aee3daa295aad70ef3f0a086552.tar.gz |
More checking for background wrap enabled.
Shorter time between timer ticks.
-rw-r--r-- | src/Editor.cxx | 2 | ||||
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
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)); |