diff options
| author | nyamatongwe <devnull@localhost> | 2004-01-11 00:40:58 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2004-01-11 00:40:58 +0000 | 
| commit | 82535546be7146e9bf60c057a007d00523492a75 (patch) | |
| tree | 78cc6e89b7b7b5999da09189d4d226a3ab97f77a /src | |
| parent | 4b4ffc1cf89ea399ea0de19a99a199a7ee38b683 (diff) | |
| download | scintilla-mirror-82535546be7146e9bf60c057a007d00523492a75.tar.gz | |
Reset braces highlight positions when changing document.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 5 | 
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); | 
