From b71d0994fa79956d8f1df4b75b3fc8ca95d0d759 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 26 Feb 2004 10:29:00 +0000 Subject: Patch to indent to next indent mark rather than to add the indent amount. --- src/Editor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3