aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-10-11 08:43:33 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-10-11 08:43:33 +0300
commit8baa1b3ebe163de3a55696e50d49f160529473b3 (patch)
treec7d54d763c5743765206ab125fffc28cea9d95d6 /src/ring.c
parent6e67f5a682ff46d69888fec61b94bf45cec46721 (diff)
downloadsciteco-8baa1b3ebe163de3a55696e50d49f160529473b3.tar.gz
optimized character representation setting
* Esp. with the new Scintilla version, the representation setting as part of every SCI_SETDOCPOINTER has turned out to be a performance bottleneck. * The new Scintilla has a custom tweak/patch that disables any automatic representation setting in Scintilla itself. It is now sufficient to initialize the SciTECO-style representations only once in the lifetime of any view.
Diffstat (limited to 'src/ring.c')
-rw-r--r--src/ring.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ring.c b/src/ring.c
index f9cf41f..606c3de 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -45,8 +45,6 @@ teco_buffer_new(void)
teco_buffer_t *ctx = g_new0(teco_buffer_t, 1);
ctx->view = teco_view_new();
teco_view_setup(ctx->view);
- /* only have to do this once: */
- teco_view_set_representations(ctx->view);
return ctx;
}