From 1391e9c6ea1f9bef965f96e70f4e27141abcb5cd Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 2 Nov 2025 23:21:21 +0100 Subject: render tabs as "TAB" in the command-line and in SciTECO macros * This requires the new SCI_SETTABDRAWMODE(SCTD_CONTROLCHAR). * It makes no sense to let TAB indent in TECO code as it can be the insert-with-tab command (^I). On the other hand large `I`-blocks could include TABs which are actually meant as indentations. --- src/view.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/view.c') diff --git a/src/view.c b/src/view.c index 790f832..702c5b6 100644 --- a/src/view.c +++ b/src/view.c @@ -145,7 +145,14 @@ teco_view_setup(teco_view_t *ctx) TECO_DEFINE_UNDO_CALL(teco_view_ssm, teco_view_t *, unsigned int, uptr_t, sptr_t); -/** @memberof teco_view_t */ +/** + * Configure typical TECO representations for control characters. + * + * You may have to SCI_SETVIEWEOL(TRUE) to see the CR and LF characters. + * In order to see the TAB character use SCI_SETTABDRAWMODE(SCTD_CONTROLCHAR). + * + * @memberof teco_view_t + */ void teco_view_set_representations(teco_view_t *ctx) { -- cgit v1.2.3