diff options
author | nyamatongwe <devnull@localhost> | 2010-03-09 00:05:08 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-03-09 00:05:08 +0000 |
commit | 16d2559aba37d3470f1534d72b2dad5fdca70d1a (patch) | |
tree | 8b911c8def70f777f2b1acf984b5507a8ba4580d /src | |
parent | cec475469700aaa6d07eed7155a05ba7792e90d6 (diff) | |
download | scintilla-mirror-16d2559aba37d3470f1534d72b2dad5fdca70d1a.tar.gz |
Bug fix from Todd at ActiveState so that unindent works on rectangular
selection.
Diffstat (limited to 'src')
-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; |