diff options
author | nyamatongwe <devnull@localhost> | 2006-06-06 01:31:48 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-06-06 01:31:48 +0000 |
commit | d3632ec27551169fe4fcbcdbc913a279027f5890 (patch) | |
tree | c0a6cca21e5a2ba528d427d0767476317f3f7856 | |
parent | 315c76d391f785ab4a01799207d20611c68de77a (diff) | |
download | scintilla-mirror-d3632ec27551169fe4fcbcdbc913a279027f5890.tar.gz |
Reindented.
-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(); |