aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-11-27 21:03:24 +0000
committernyamatongwe <devnull@localhost>2003-11-27 21:03:24 +0000
commit022a14c94b49659a29d76207a2cbb187a76ad24e (patch)
treefa0ed438fa494c540371dfaa6842292fa5645ac6 /src
parent38b532f629c988271ed879e79f7ec63a92879a06 (diff)
downloadscintilla-mirror-022a14c94b49659a29d76207a2cbb187a76ad24e.tar.gz
Ensure style data refreshed before wrapping lines.
Diffstat (limited to 'src')
-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;