diff options
| author | nyamatongwe <unknown> | 2006-06-06 01:31:48 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2006-06-06 01:31:48 +0000 | 
| commit | 3aed66b6791cbcce779ececad69e829963e88713 (patch) | |
| tree | c0a6cca21e5a2ba528d427d0767476317f3f7856 /src | |
| parent | a94abb53e54f4e97b039da4edfc97fef15489a52 (diff) | |
| download | scintilla-mirror-3aed66b6791cbcce779ececad69e829963e88713.tar.gz | |
Reindented.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 38 | 
1 files changed, 19 insertions, 19 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 33479e6ba..189c0950f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -328,7 +328,7 @@ void LineLayoutCache::Dispose(LineLayout *ll) {  			delete ll;  		} else {  			useCount--; - 		} +		}  	}  } @@ -1591,14 +1591,14 @@ bool Editor::WrapLines(bool fullWrap, int priorityWrapLineStart) {  					if (!priorityWrap)  						docLineLastWrapped++;  					if (firstLineToWrap < pdoc->LinesTotal()) { -					AutoLineLayout ll(llc, RetrieveLineLayout(firstLineToWrap)); -					int linesWrapped = 1; -					if (ll) { -						LayoutLine(firstLineToWrap, surface, vs, ll, wrapWidth); -						linesWrapped = ll->lines; -					} -					if (cs.SetHeight(firstLineToWrap, linesWrapped)) { -						wrapOccurred = true; +						AutoLineLayout ll(llc, RetrieveLineLayout(firstLineToWrap)); +						int linesWrapped = 1; +						if (ll) { +							LayoutLine(firstLineToWrap, surface, vs, ll, wrapWidth); +							linesWrapped = ll->lines; +						} +						if (cs.SetHeight(firstLineToWrap, linesWrapped)) { +							wrapOccurred = true;  						}  					}  				} @@ -4898,7 +4898,7 @@ void Editor::CopySelectionRange(SelectionText *ss) {  				text[size] = '\0';  			}  		} - 		ss->Set(text, size + 1, pdoc->dbcsCodePage, +		ss->Set(text, size + 1, pdoc->dbcsCodePage,  			vs.styles[STYLE_DEFAULT].characterSet, selType == selRectangle);  	}  } @@ -6371,15 +6371,15 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  	case SCI_SETWRAPMODE:  		switch (wParam) { -			case SC_WRAP_WORD: -				wrapState = eWrapWord; -				break; -			case SC_WRAP_CHAR: -				wrapState = eWrapChar; -				break; -			default: -				wrapState = eWrapNone; -				break; +		case SC_WRAP_WORD: +			wrapState = eWrapWord; +			break; +		case SC_WRAP_CHAR: +			wrapState = eWrapChar; +			break; +		default: +			wrapState = eWrapNone; +			break;  		}  		xOffset = 0;  		InvalidateStyleRedraw(); | 
