1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Minor string changes.

This commit is contained in:
Julian Storer 2010-03-26 18:23:54 +00:00
parent e0e12a8bd9
commit 66643e85ac
74 changed files with 895 additions and 889 deletions

View file

@ -250,7 +250,7 @@ private:
break;
const int spacesNeeded = spacesPerTab - ((tabPos + x) % spacesPerTab);
t.text = t.text.replaceSection (tabPos, 1, String::repeatedString (T(" "), spacesNeeded));
t.text = t.text.replaceSection (tabPos, 1, String::repeatedString (" ", spacesNeeded));
}
x += t.text.length();
@ -632,7 +632,7 @@ void CodeEditorComponent::insertTabAtCaret()
{
const int caretCol = indexToColumn (caretPos.getLineNumber(), caretPos.getIndexInLine());
const int spacesNeeded = spacesPerTab - (caretCol % spacesPerTab);
insertTextAtCaret (String::repeatedString (T(" "), spacesNeeded));
insertTextAtCaret (String::repeatedString (" ", spacesNeeded));
}
else
{