From 8d42224c563865b232727e93169c81f11cd53fe1 Mon Sep 17 00:00:00 2001 From: magiblot Date: Sun, 7 Jan 2024 13:55:54 +0100 Subject: [PATCH] Change default tab size to 4 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. --- source/turbo-core/editor.cc | 1 + source/turbo-core/tscintilla.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/turbo-core/editor.cc b/source/turbo-core/editor.cc index d50445a..e9a7ae8 100644 --- a/source/turbo-core/editor.cc +++ b/source/turbo-core/editor.cc @@ -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); diff --git a/source/turbo-core/tscintilla.cc b/source/turbo-core/tscintilla.cc index cbeffe6..f8e05d2 100644 --- a/source/turbo-core/tscintilla.cc +++ b/source/turbo-core/tscintilla.cc @@ -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;