aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc.h')
-rw-r--r--src/doc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doc.h b/src/doc.h
index 91663d4..1218c35 100644
--- a/src/doc.h
+++ b/src/doc.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012-2023 Robin Haberkorn
+ * Copyright (C) 2012-2024 Robin Haberkorn
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -42,7 +42,7 @@ typedef struct teco_doc_scintilla_t teco_doc_scintilla_t;
typedef struct {
/**
* Underlying Scintilla document.
- * It is created on demand in teco_doc_maybe_create_document(),
+ * It is created on demand in teco_doc_get_scintilla(),
* so that we don't waste memory on integer-only Q-Registers.
*/
teco_doc_scintilla_t *doc;
@@ -62,13 +62,13 @@ teco_doc_init(teco_doc_t *ctx)
memset(ctx, 0, sizeof(*ctx));
}
-void teco_doc_edit(teco_doc_t *ctx);
+void teco_doc_edit(teco_doc_t *ctx, guint default_cp);
void teco_doc_undo_edit(teco_doc_t *ctx);
-void teco_doc_set_string(teco_doc_t *ctx, const gchar *str, gsize len);
+void teco_doc_set_string(teco_doc_t *ctx, const gchar *str, gsize len, guint codepage);
void teco_doc_undo_set_string(teco_doc_t *ctx);
-void teco_doc_get_string(teco_doc_t *ctx, gchar **str, gsize *len);
+void teco_doc_get_string(teco_doc_t *ctx, gchar **str, gsize *len, guint *codepage);
void teco_doc_update_from_view(teco_doc_t *ctx, teco_view_t *from);
void teco_doc_update_from_doc(teco_doc_t *ctx, const teco_doc_t *from);