diff options
author | nyamatongwe <unknown> | 2000-07-26 04:56:54 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-07-26 04:56:54 +0000 |
commit | f5b62bd6cf8ff423398649517ba21136777cd307 (patch) | |
tree | 78f261925594c1df215cb0a27bdaf28d6db5279b /src/Editor.cxx | |
parent | 5c55e0ae80a94d946a3e0df8fb14703184a34dd8 (diff) | |
download | scintilla-mirror-f5b62bd6cf8ff423398649517ba21136777cd307.tar.gz |
Added history entry for 1.30.
Included Ralf's soft tab patch.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index f3aac824f..f70826473 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2226,9 +2226,15 @@ void Editor::Indent(bool forwards) { int lineCurrentPos = pdoc->LineFromPosition(currentPos); if (lineOfAnchor == lineCurrentPos) { ClearSelection(); - pdoc->InsertChar(currentPos, '\t'); - //pdoc->InsertChar(currentPos++, '\t'); - SetEmptySelection(currentPos + 1); + if (pdoc->useTabs) { + pdoc->InsertChar(currentPos, '\t'); + SetEmptySelection(currentPos + 1); + } else { + for (int i=0; i<pdoc->tabInChars; i++){ + pdoc->InsertChar(currentPos, ' '); + } + SetEmptySelection(currentPos + pdoc->tabInChars); + } } else { int anchorPosOnLine = anchor - pdoc->LineStart(lineOfAnchor); int currentPosPosOnLine = currentPos - pdoc->LineStart(lineCurrentPos); |