From 16d2559aba37d3470f1534d72b2dad5fdca70d1a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 9 Mar 2010 00:05:08 +0000 Subject: Bug fix from Todd at ActiveState so that unindent works on rectangular selection. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 7afd3e563..4cc275e71 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5215,7 +5215,7 @@ void Editor::Indent(bool forwards) { int indentation = pdoc->GetLineIndentation(lineCurrentPos); int indentationStep = pdoc->IndentSize(); pdoc->SetLineIndentation(lineCurrentPos, indentation - indentationStep); - SetEmptySelection(pdoc->GetLineIndentPosition(lineCurrentPos)); + sel.Range(r) = SelectionRange(pdoc->GetLineIndentPosition(lineCurrentPos)); } else { int newColumn = ((pdoc->GetColumn(caretPosition) - 1) / pdoc->tabInChars) * pdoc->tabInChars; -- cgit v1.2.3