diff options
author | nyamatongwe <devnull@localhost> | 2000-07-26 04:56:54 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-07-26 04:56:54 +0000 |
commit | 05a2ea25e0d340a68aca1b28fdfbf2b4c6aa5de3 (patch) | |
tree | 78f261925594c1df215cb0a27bdaf28d6db5279b /src | |
parent | e8f0eecc8b2af98f8ad015b836244d158b49f310 (diff) | |
download | scintilla-mirror-05a2ea25e0d340a68aca1b28fdfbf2b4c6aa5de3.tar.gz |
Added history entry for 1.30.
Included Ralf's soft tab patch.
Diffstat (limited to 'src')
-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); |