aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-11-27 21:03:24 +0000
committernyamatongwe <unknown>2003-11-27 21:03:24 +0000
commitdc62d2a8faddbd410dead6bf1a69d3e50fd59496 (patch)
treefa0ed438fa494c540371dfaa6842292fa5645ac6 /src/Editor.cxx
parentcab7d5eeb8f11e54723df01a7e03a7e380db6f71 (diff)
downloadscintilla-mirror-dc62d2a8faddbd410dead6bf1a69d3e50fd59496.tar.gz
Ensure style data refreshed before wrapping lines.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index ce606ee00..02283599c 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -380,7 +380,7 @@ Editor::Editor() {
wrapWidth = LineLayout::wrapWidthInfinite;
docLineLastWrapped = -1;
docLastLineToWrap = -1;
- backgroundWrapEnabled = true;
+ backgroundWrapEnabled = false;
hsStart = -1;
hsEnd = -1;
@@ -1466,6 +1466,7 @@ bool Editor::WrapLines(bool fullWrap, int priorityWrapLineStart) {
wrapWidth = rcTextArea.Width();
// Ensure all of the document is styled.
pdoc->EnsureStyledTo(pdoc->Length());
+ RefreshStyleData();
AutoSurface surface(this);
if (surface) {
bool priorityWrap = false;