diff options
author | nyamatongwe <unknown> | 2003-11-27 21:03:24 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-11-27 21:03:24 +0000 |
commit | dc62d2a8faddbd410dead6bf1a69d3e50fd59496 (patch) | |
tree | fa0ed438fa494c540371dfaa6842292fa5645ac6 /src | |
parent | cab7d5eeb8f11e54723df01a7e03a7e380db6f71 (diff) | |
download | scintilla-mirror-dc62d2a8faddbd410dead6bf1a69d3e50fd59496.tar.gz |
Ensure style data refreshed before wrapping lines.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 3 |
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; |