From e384e4fde604564a3bc140b89bb8c1556a726464 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 30 Aug 2024 16:15:16 +0200 Subject: implemented and <^E> commands for configuring encodings and translating between glyph and byte offsets (refs #5) * ^E is heavily overloaded and can also be used to check whether a given index is valid (as it is the same that most movement commands to internally). Besides that, it is mainly useful for interfacing with Scintilla messages. * EE takes a code page or 0 for ANSI/ASCII. Currently all documents and new registers are UTF-8. There will have to be some kind of codepage inheritance and a single-byte-only mode. --- src/doc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/doc.c') diff --git a/src/doc.c b/src/doc.c index 0360b43..4e41e8a 100644 --- a/src/doc.c +++ b/src/doc.c @@ -60,6 +60,7 @@ teco_doc_edit(teco_doc_t *ctx) * * FIXME: This apparently gets reset with every SCI_SETDOCPOINTER. * Does that mean the index needs to be recalculated repeatedly as well? + * What if the document/register is made non-UTF-8 afterwards? */ teco_view_ssm(teco_qreg_view, SCI_ALLOCATELINECHARACTERINDEX, SC_LINECHARACTERINDEX_UTF32, 0); -- cgit v1.2.3