From 82535546be7146e9bf60c057a007d00523492a75 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 11 Jan 2004 00:40:58 +0000 Subject: Reset braces highlight positions when changing document. --- src/Editor.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 +// Copyright 1998-2004 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include @@ -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); -- cgit v1.2.3