diff options
| author | nyamatongwe <devnull@localhost> | 2000-10-16 10:58:24 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-10-16 10:58:24 +0000 | 
| commit | 517692e10fa73e5bdab499c7127fd33e8814a233 (patch) | |
| tree | 5137098751a63a18dcd7a6db8823fa6ed3c9257d /src/Editor.cxx | |
| parent | 1bbf2f102eed4474c183ad1d99eb66d3ed4c2145 (diff) | |
| download | scintilla-mirror-517692e10fa73e5bdab499c7127fd33e8814a233.tar.gz | |
Merged Jason's WordPart left and right movement patch.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 20 | 
1 files changed, 20 insertions, 0 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 16049e20d..d6eea354f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2263,6 +2263,22 @@ int Editor::KeyCommand(unsigned int iMessage) {  	case SCI_UPPERCASE:  		ChangeCaseOfSelection(true);  		break; +	case SCI_WORDPARTLEFT: +		MovePositionTo(MovePositionSoVisible(pdoc->WordPartLeft(currentPos), -1)); +		SetLastXChosen(); +		break; +	case SCI_WORDPARTLEFTEXTEND: +		MovePositionTo(MovePositionSoVisible(pdoc->WordPartLeft(currentPos), -1), true); +		SetLastXChosen(); +		break; +	case SCI_WORDPARTRIGHT: +		MovePositionTo(MovePositionSoVisible(pdoc->WordPartRight(currentPos), 1)); +		SetLastXChosen(); +		break; +	case SCI_WORDPARTRIGHTEXTEND: +		MovePositionTo(MovePositionSoVisible(pdoc->WordPartRight(currentPos), 1), true); +		SetLastXChosen(); +		break;  	}  	return 0;  } @@ -4224,6 +4240,10 @@ long Editor::WndProc(unsigned int iMessage, unsigned long wParam, long lParam) {  	case SCI_UPPERCASE:  	case SCI_LINESCROLLDOWN:  	case SCI_LINESCROLLUP: +	case SCI_WORDPARTLEFT: +	case SCI_WORDPARTLEFTEXTEND: +	case SCI_WORDPARTRIGHT: +	case SCI_WORDPARTRIGHTEXTEND:  		return KeyCommand(iMessage);  	case SCI_BRACEHIGHLIGHT: | 
