diff options
author | nyamatongwe <unknown> | 2000-09-05 11:42:37 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-09-05 11:42:37 +0000 |
commit | bdf167fcf3f9345314e5ae001472ce26ab3fa4b8 (patch) | |
tree | d05e0f2f469bc8b3006ac8d235428356dc677537 | |
parent | 1e1e65983acd0f07bc7e4d2cca778647458197fa (diff) | |
download | scintilla-mirror-bdf167fcf3f9345314e5ae001472ce26ab3fa4b8.tar.gz |
Fixed indentation.
-rw-r--r-- | src/Editor.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 487edf9a5..9b41af798 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1229,14 +1229,14 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { if (line == lineCaret) { int offset = Platform::Minimum(posCaret - posLineStart, LineLayout::maxLineLength); int xposCaret = ll.positions[offset] + xStart; - int widthOverstrikeCaret = 1; - if (posCaret == pdoc->Length()) { // At end of document + int widthOverstrikeCaret; + if (posCaret == pdoc->Length()) { // At end of document widthOverstrikeCaret = vs.aveCharWidth; - } else if ((posCaret - posLineStart) >= ll.numCharsInLine) { // At end of line + } else if ((posCaret - posLineStart) >= ll.numCharsInLine) { // At end of line widthOverstrikeCaret = vs.aveCharWidth; - } else { - widthOverstrikeCaret = ll.positions[offset + 1] - ll.positions[offset]; - } + } else { + widthOverstrikeCaret = ll.positions[offset + 1] - ll.positions[offset]; + } if (widthOverstrikeCaret < 3) // Make sure its visible widthOverstrikeCaret = 3; if (((caret.active && caret.on) || (posDrag >= 0)) && xposCaret >= 0) { |