From 022a14c94b49659a29d76207a2cbb187a76ad24e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 27 Nov 2003 21:03:24 +0000 Subject: Ensure style data refreshed before wrapping lines. --- src/Editor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3