aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-02-26 10:29:00 +0000
committernyamatongwe <devnull@localhost>2004-02-26 10:29:00 +0000
commitb71d0994fa79956d8f1df4b75b3fc8ca95d0d759 (patch)
tree8c64fa5812e51fa7fc9ff51a59581e0a76de9931 /src
parentac0597b4bc696051e18fd13c68ee825c91ec6db7 (diff)
downloadscintilla-mirror-b71d0994fa79956d8f1df4b75b3fc8ca95d0d759.tar.gz
Patch to indent to next indent mark rather than to add the
indent amount.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx3
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) {