diff options
author | nyamatongwe <unknown> | 2010-03-09 00:05:08 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-03-09 00:05:08 +0000 |
commit | 1ce4dc2d8079ddde0946942435f7872fbdb2e717 (patch) | |
tree | 8b911c8def70f777f2b1acf984b5507a8ba4580d | |
parent | 6a1603f334fcb231838393354fdb946dc45d99f2 (diff) | |
download | scintilla-mirror-1ce4dc2d8079ddde0946942435f7872fbdb2e717.tar.gz |
Bug fix from Todd at ActiveState so that unindent works on rectangular
selection.
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |