diff options
author | nyamatongwe <devnull@localhost> | 2004-02-26 10:29:00 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2004-02-26 10:29:00 +0000 |
commit | b71d0994fa79956d8f1df4b75b3fc8ca95d0d759 (patch) | |
tree | 8c64fa5812e51fa7fc9ff51a59581e0a76de9931 | |
parent | ac0597b4bc696051e18fd13c68ee825c91ec6db7 (diff) | |
download | scintilla-mirror-b71d0994fa79956d8f1df4b75b3fc8ca95d0d759.tar.gz |
Patch to indent to next indent mark rather than to add the
indent amount.
-rw-r--r-- | src/Editor.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 163757c34..ba35bc5d9 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4282,7 +4282,8 @@ void Editor::Indent(bool forwards) { pdoc->tabIndents) { int indentation = pdoc->GetLineIndentation(lineCurrentPos); int indentationStep = (pdoc->indentInChars ? pdoc->indentInChars : pdoc->tabInChars); - pdoc->SetLineIndentation(lineCurrentPos, indentation + indentationStep); + //~ pdoc->SetLineIndentation(lineCurrentPos, indentation + indentationStep); + pdoc->SetLineIndentation(lineCurrentPos, indentation + indentationStep - indentation % indentationStep); SetEmptySelection(pdoc->GetLineIndentPosition(lineCurrentPos)); } else { if (pdoc->useTabs) { |