aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-02-03 01:02:22 +0000
committernyamatongwe <devnull@localhost>2002-02-03 01:02:22 +0000
commit080ff4532e6ad7a2e74bc3913096b6ee25437a02 (patch)
tree13a6af966216ecbd30a7eaf8b1a18d78979f90c7 /src/Editor.cxx
parenta9564dd2354f3d80c18a938c68589f5a62ff1a35 (diff)
downloadscintilla-mirror-080ff4532e6ad7a2e74bc3913096b6ee25437a02.tar.gz
When changing document, ensured rewrap performed.
Made memory allocation a little safer in ContractionState.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index e8086770e..461460f69 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3685,6 +3685,7 @@ void Editor::SetDocPointer(Document *document) {
// Reset the contraction state to fully shown.
cs.Clear();
cs.InsertLines(0, pdoc->LinesTotal() - 1);
+ NeedWrapping();
pdoc->AddWatcher(this, 0);
Redraw();