aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-09-18 12:24:16 +0000
committernyamatongwe <devnull@localhost>2003-09-18 12:24:16 +0000
commit3e459e50bf8c119f7964f5838ce557e287b2c89e (patch)
tree1d298eb03c468b2a0b4fe6068ccc6598b3995442 /src/Editor.cxx
parentb6e64721e32f4b294ee0a457b3d29846096b4484 (diff)
downloadscintilla-mirror-3e459e50bf8c119f7964f5838ce557e287b2c89e.tar.gz
Safe parts of idle time wrapping.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index b75a62ec6..470b30ea3 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -35,6 +35,9 @@ active(false), on(false), period(500) {}
Timer::Timer() :
ticking(false), ticksToWait(0), tickerID(0) {}
+Idler::Idler() :
+state(false), idlerID(0) {}
+
LineLayout::LineLayout(int maxLineLength_) :
lineStarts(0),
lenLineStarts(0),
@@ -375,6 +378,7 @@ Editor::Editor() {
wrapState = eWrapNone;
wrapWidth = LineLayout::wrapWidthInfinite;
docLineLastWrapped = -1;
+ docLastLineToWrap = -1;
hsStart = -1;
hsEnd = -1;
@@ -387,6 +391,7 @@ Editor::~Editor() {
pdoc->Release();
pdoc = 0;
DropGraphics();
+ /* SetIdle(false) must be called in a platform independent way */
delete pixmapLine;
delete pixmapSelMargin;
delete pixmapSelPattern;
@@ -395,6 +400,7 @@ Editor::~Editor() {
}
void Editor::Finalise() {
+ SetIdle(false);
CancelModes();
}