diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 28 | 
1 files changed, 2 insertions, 26 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 3b53f806f..ab65382b3 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2908,19 +2908,20 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {  		//		EM_GETPUNCTUATION  		//		EM_SETPUNCTUATION  		//		EM_GETTHUMB +		//		EM_SETTARGETDEVICE  		// Not supported but should be:  		//		EM_GETEVENTMASK  		//		EM_SETEVENTMASK  		//		For printing:  		//			EM_DISPLAYBAND -		//			EM_SETTARGETDEVICE  	case EM_CANUNDO:  		return pdoc->CanUndo() ? TRUE : FALSE;  	case EM_UNDO:  		Undo(); +		SetLastXChosen();  		break;  	case EM_EMPTYUNDOBUFFER: @@ -2956,12 +2957,6 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {  	case EM_GETMODIFY:  		return !pdoc->IsSavePoint(); -	case EM_SETMODIFY: -		// Not really supported now that there is the save point stuff -		//pdoc->isModified = wParam; -		//return pdoc->isModified; -		return false; -  	case EM_GETRECT:  		if (lParam == 0)  			return 0; @@ -3025,22 +3020,6 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {  			return iChar;  		} -	case EM_GETWORDBREAKPROC: -		return 0; - -	case EM_SETWORDBREAKPROC: -		break; - -	case EM_SETLIMITTEXT: -		// wParam holds the number of characters control should be limited to -		break; - -	case EM_GETLIMITTEXT: -		return 0xffffffff; - -	case EM_GETOLEINTERFACE: -		return 0; -  	case EM_LINEFROMCHAR:  		if (static_cast<int>(wParam) < 0)  			wParam = SelectionStart(); @@ -3110,9 +3089,6 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {  		pdoc->SetReadOnly(wParam);  		return TRUE; -	case EM_SETRECT: -		break; -  	case EM_CANPASTE:  		return 1; | 
