aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.cxx
diff options
context:
space:
mode:
authorHenrik Hank <unknown>2018-06-06 08:55:59 +1000
committerHenrik Hank <unknown>2018-06-06 08:55:59 +1000
commitf30e3460821d39e5f3c568b4fecfc108d00dab3f (patch)
treea273829049c2dbb85c8b91f5becc0ef4be7a5aa0 /src/EditView.cxx
parent400282b27f24f78777b591366e6bd2add9f33f1d (diff)
downloadscintilla-mirror-f30e3460821d39e5f3c568b4fecfc108d00dab3f.tar.gz
SC_WRAPINDENT_DEEPINDENT added to indent two tabs from previous line.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r--src/EditView.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx
index 46eda5d3b..e09e55de9 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -521,10 +521,16 @@ void EditView::LayoutLine(const EditModel &model, Sci::Line line, Surface *surfa
width -= static_cast<int>(vstyle.aveCharWidth); // take into account the space for end wrap mark
}
XYPOSITION wrapAddIndent = 0; // This will be added to initial indent of line
- if (vstyle.wrapIndentMode == SC_WRAPINDENT_INDENT) {
- wrapAddIndent = model.pdoc->IndentSize() * vstyle.spaceWidth;
- } else if (vstyle.wrapIndentMode == SC_WRAPINDENT_FIXED) {
+ switch (vstyle.wrapIndentMode) {
+ case SC_WRAPINDENT_FIXED:
wrapAddIndent = vstyle.wrapVisualStartIndent * vstyle.aveCharWidth;
+ break;
+ case SC_WRAPINDENT_INDENT:
+ wrapAddIndent = model.pdoc->IndentSize() * vstyle.spaceWidth;
+ break;
+ case SC_WRAPINDENT_DEEPINDENT:
+ wrapAddIndent = model.pdoc->IndentSize() * 2 * vstyle.spaceWidth;
+ break;
}
ll->wrapIndent = wrapAddIndent;
if (vstyle.wrapIndentMode != SC_WRAPINDENT_FIXED)