We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbfb25c commit 04d3b09Copy full SHA for 04d3b09
1 file changed
libctru/source/console.c
@@ -840,6 +840,8 @@ void consoleDrawChar(int c) {
840
//---------------------------------------------------------------------------------
841
void consolePrintChar(int c) {
842
843
+ int tabspaces;
844
+
845
if (c==0) return;
846
847
if(currentConsole->PrintChar)
@@ -872,7 +874,8 @@ void consolePrintChar(int c) {
872
874
break;
873
875
876
case 9:
- for(int i=0; i<currentConsole->tabSize; i++) consolePrintChar(' ');
877
+ tabspaces = currentConsole->tabSize - ((currentConsole->cursorX - 1) % currentConsole->tabSize);
878
+ for(int i=0; i<tabspaces; i++) consolePrintChar(' ');
879
880
case 10:
881
newRow();
0 commit comments