aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-02-26 10:29:00 +0000
committernyamatongwe <unknown>2004-02-26 10:29:00 +0000
commit0651516f3f783f9aa970102d3b7ce986bddf2b29 (patch)
tree8c64fa5812e51fa7fc9ff51a59581e0a76de9931 /src/Editor.cxx
parent6e4fee0fba99500943dd03610da058ffc365fde3 (diff)
downloadscintilla-mirror-0651516f3f783f9aa970102d3b7ce986bddf2b29.tar.gz
Patch to indent to next indent mark rather than to add the
indent amount.
Diffstat (limited to 'src/Editor.cxx')
-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) {