diff options
| author | nyamatongwe <unknown> | 2007-04-21 22:47:46 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2007-04-21 22:47:46 +0000 | 
| commit | b4dc83397dfe36d538dfc3dd476b0ebe0c4c44ea (patch) | |
| tree | 40285007bb46b7b11276008adc883a4a788f008b /src | |
| parent | 4e72c1d192f8c58bd170e9f2f6a601fd9e4895e9 (diff) | |
| download | scintilla-mirror-b4dc83397dfe36d538dfc3dd476b0ebe0c4c44ea.tar.gz | |
Fixed bug when using SCI_LINETRANSPOSE on a blank line.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 13 | 
1 files changed, 6 insertions, 7 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 3a7a00f8e..2a1018252 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4150,12 +4150,11 @@ void Editor::LineTranspose() {  		int len1 = endPrev - startPrev;  		char *line2 = CopyRange(start, end);  		int len2 = end - start; -		if (pdoc->DeleteChars(start, len2)) { -			pdoc->DeleteChars(startPrev, len1); -			pdoc->InsertString(startPrev, line2, len2); -			pdoc->InsertString(start - len1 + len2, line1, len1); -			MovePositionTo(start - len1 + len2); -		} +		pdoc->DeleteChars(start, len2); +		pdoc->DeleteChars(startPrev, len1); +		pdoc->InsertString(startPrev, line2, len2); +		pdoc->InsertString(start - len1 + len2, line1, len1); +		MovePositionTo(start - len1 + len2);  		delete []line1;  		delete []line2;  		pdoc->EndUndoAction(); @@ -6841,7 +6840,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  		if (wParam <= STYLE_MAX)  			return vs.styles[wParam].fore.desired.AsLong();  		else -			return 0;  +			return 0;  	case SCI_STYLEGETBACK:  		if (wParam <= STYLE_MAX)  			return vs.styles[wParam].back.desired.AsLong(); | 
