diff options
| author | nyamatongwe <devnull@localhost> | 2000-07-12 07:21:46 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-07-12 07:21:46 +0000 | 
| commit | a4cde497e296ebdeedeafe2519e75a09c6fd9488 (patch) | |
| tree | ad2682d1284348952c3f35cb03eb8a1d24ff9f46 /src/Editor.cxx | |
| parent | 9bde3adbd08a9f706655f0e0fe1c9adf685408a0 (diff) | |
| download | scintilla-mirror-a4cde497e296ebdeedeafe2519e75a09c6fd9488.tar.gz | |
Added John's autocompletion changes and fiddled to make autocompletion list
size better.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 29037474e..487a4c4f7 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -116,6 +116,7 @@ Editor::~Editor() {  }  void Editor::Finalise() { +    CancelModes();  }  void Editor::DropGraphics() { @@ -1950,6 +1951,10 @@ void Editor::LineTranspose() {  	}  } +void Editor::CancelModes() { +	SetEmptySelection(currentPos); +} +  int Editor::KeyCommand(UINT iMessage) {  	Point pt = LocationFromPosition(currentPos); @@ -2069,7 +2074,7 @@ int Editor::KeyCommand(UINT iMessage) {  		break;  	case SCI_CANCEL:  	// Cancel any modes - handled in subclass  		// Also unselect text -		SetEmptySelection(currentPos); +        CancelModes();  		break;  	case SCI_DELETEBACK:  		DelCharBack(); | 
