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 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);
}
}