diff options
| author | nyamatongwe <unknown> | 2008-08-09 05:55:58 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2008-08-09 05:55:58 +0000 | 
| commit | 3be9c420feeffc6d580f50776c58d581fc7234e7 (patch) | |
| tree | b70706c397575dc2ccc4f45b2d8f6e125e8f0c5a /src | |
| parent | 73bdcfd918ba0dfeef1a1416bd70387502b6ac37 (diff) | |
| download | scintilla-mirror-3be9c420feeffc6d580f50776c58d581fc7234e7.tar.gz | |
Clear document style now only clears the lexer indicators.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Decoration.cxx | 8 | ||||
| -rw-r--r-- | src/Decoration.h | 2 | ||||
| -rw-r--r-- | src/Editor.cxx | 5 | 
3 files changed, 4 insertions, 11 deletions
| diff --git a/src/Decoration.cxx b/src/Decoration.cxx index 0e5b4a09a..e4ac0e07c 100644 --- a/src/Decoration.cxx +++ b/src/Decoration.cxx @@ -101,14 +101,6 @@ void DecorationList::Delete(int indicator) {  	}  } -void DecorationList::ClearAll() { -	for (Decoration *deco=root; deco; deco = deco->next) { -		int position = 0; -		int length = deco->rs.Length(); -		deco->rs.FillRange(position, 0, length); -	} -} -  void DecorationList::SetCurrentIndicator(int indicator) {  	currentIndicator = indicator;  	current = DecorationFromIndicator(indicator); diff --git a/src/Decoration.h b/src/Decoration.h index 5c02aa7be..2809641af 100644 --- a/src/Decoration.h +++ b/src/Decoration.h @@ -39,8 +39,6 @@ public:  	DecorationList();  	~DecorationList(); -	void ClearAll(); -  	void SetCurrentIndicator(int indicator);  	int GetCurrentIndicator() { return currentIndicator; } diff --git a/src/Editor.cxx b/src/Editor.cxx index 372f03ea9..e28275917 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3493,11 +3493,14 @@ void Editor::ClearAll() {  }  void Editor::ClearDocumentStyle() { +	for (int i=0; i < INDIC_CONTAINER; i++) { +		pdoc->decorations.SetCurrentIndicator(i); +		pdoc->DecorationFillRange(0, 0, pdoc->Length()); +	}  	pdoc->StartStyling(0, '\377');  	pdoc->SetStyleFor(pdoc->Length(), 0);  	cs.ShowAll();  	pdoc->ClearLevels(); -	pdoc->decorations.ClearAll();  }  void Editor::CopyAllowLine() { | 
