aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-08-30 16:15:16 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-09 18:22:21 +0200
commite384e4fde604564a3bc140b89bb8c1556a726464 (patch)
tree35c9a29f8a6d8362213652c863dd1bf77da60486 /src/doc.c
parent7507ad3e1816f3bc9004dceb39bb303804287438 (diff)
downloadsciteco-e384e4fde604564a3bc140b89bb8c1556a726464.tar.gz
implemented <EE> 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.
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c1
1 files changed, 1 insertions, 0 deletions
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);