Skip to content

Commit

Permalink
Change default tab size to 4
Browse files Browse the repository at this point in the history
Given that this cannot be currently customized by the user, use a value that is less likely to result in code containing tabs looking messed up.
See #62.
  • Loading branch information
magiblot committed Jan 7, 2024
1 parent 5d7e794 commit 8d42224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/turbo-core/editor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Editor::Editor(TScintilla &aScintilla) noexcept :
// Indentation
call(scintilla, SCI_SETUSETABS, false, 0U);
call(scintilla, SCI_SETINDENT, 4, 0U);
call(scintilla, SCI_SETTABWIDTH, 4, 0U);
call(scintilla, SCI_SETTABINDENTS, true, 0U);
call(scintilla, SCI_SETBACKSPACEUNINDENTS, true, 0U);

Expand Down
2 changes: 1 addition & 1 deletion source/turbo-core/tscintilla.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ TScintilla::TScintilla()
reprs.SetRepresentation(c, r);
}
}
reprs.SetRepresentation("\t", "» ");
reprs.SetRepresentation("\t", "»");
}
// Do not use padding for control characters.
vs.ctrlCharPadding = 0;
Expand Down

0 comments on commit 8d42224

Please sign in to comment.