aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-01-11 00:40:58 +0000
committernyamatongwe <unknown>2004-01-11 00:40:58 +0000
commit2b2c0414f2a278eb669a830dd8b8fa998e6ff757 (patch)
tree78cc6e89b7b7b5999da09189d4d226a3ab97f77a
parente37b13a418ea567298f0c438ae183c1b9dd1b937 (diff)
downloadscintilla-mirror-2b2c0414f2a278eb669a830dd8b8fa998e6ff757.tar.gz
Reset braces highlight positions when changing document.
-rw-r--r--src/Editor.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index f0f10e25a..c13398b31 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2,7 +2,7 @@
/** @file Editor.cxx
** Main code for the edit control.
**/
-// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
+// Copyright 1998-2004 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
@@ -5238,6 +5238,9 @@ void Editor::SetDocPointer(Document *document) {
targetStart = 0;
targetEnd = 0;
+ braces[0] = invalidPosition;
+ braces[1] = invalidPosition;
+
// Reset the contraction state to fully shown.
cs.Clear();
cs.InsertLines(0, pdoc->LinesTotal() - 1);