diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 4 | ||||
| -rw-r--r-- | src/Editor.h | 2 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 6cf8d7490..5ed69b36b 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3912,8 +3912,8 @@ void Editor::InsertPaste(SelectionPosition selStart, const char *text, int len)  	}  } -void Editor::ClearSelection() { -	if (!sel.IsRectangular()) +void Editor::ClearSelection(bool retainMultipleSelections) { +	if (!sel.IsRectangular() && !retainMultipleSelections)  		FilterSelections();  	UndoGroup ug(pdoc);  	for (size_t r=0; r<sel.Count(); r++) { diff --git a/src/Editor.h b/src/Editor.h index 50948e2e3..288addee0 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -391,7 +391,7 @@ protected:	// ScintillaBase subclass needs access to much of Editor  	void AddChar(char ch);  	virtual void AddCharUTF(char *s, unsigned int len, bool treatAsDBCS=false);  	void InsertPaste(SelectionPosition selStart, const char *text, int len); -	void ClearSelection(); +	void ClearSelection(bool retainMultipleSelections=false);  	void ClearAll();  	void ClearDocumentStyle();  	void Cut(); | 
