diff options
| author | nyamatongwe <unknown> | 2001-11-16 11:23:09 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-11-16 11:23:09 +0000 | 
| commit | 2e4cd5a427414588d7de72aefba09238c325367c (patch) | |
| tree | 94e100d76792c8a436a327ddb5b71349aaed354e /src/ScintillaBase.cxx | |
| parent | 58b5ae4eb93b3e931710d337c1345694ad72485a (diff) | |
| download | scintilla-mirror-2e4cd5a427414588d7de72aefba09238c325367c.tar.gz | |
Added DeleteBackNotLine command.
Diffstat (limited to 'src/ScintillaBase.cxx')
| -rw-r--r-- | src/ScintillaBase.cxx | 12 | 
1 files changed, 9 insertions, 3 deletions
| diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 831d9fc34..eb882cfad 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -137,7 +137,12 @@ int ScintillaBase::KeyCommand(unsigned int iMessage) {  			AutoCompleteMove(5000);  			return 0;  		case SCI_DELETEBACK: -			DelCharBack(); +			DelCharBack(true); +			AutoCompleteChanged(); +			EnsureCaretVisible(); +			return 0; +		case SCI_DELETEBACKNOTLINE: +			DelCharBack(false);  			AutoCompleteChanged();  			EnsureCaretVisible();  			return 0; @@ -160,11 +165,12 @@ int ScintillaBase::KeyCommand(unsigned int iMessage) {  		    (iMessage != SCI_CHARRIGHT) &&  		    (iMessage != SCI_CHARLEFTEXTEND) &&  		    (iMessage != SCI_EDITTOGGLEOVERTYPE) && -		    (iMessage != SCI_DELETEBACK) +		    (iMessage != SCI_DELETEBACK) && +		    (iMessage != SCI_DELETEBACKNOTLINE)  		) {  			ct.CallTipCancel();  		} -		if (iMessage == SCI_DELETEBACK) { +		if ((iMessage == SCI_DELETEBACK) || (iMessage == SCI_DELETEBACKNOTLINE)) {  			if (currentPos <= ct.posStartCallTip) {  				ct.CallTipCancel();  			} | 
