From 8baa1b3ebe163de3a55696e50d49f160529473b3 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 11 Oct 2021 08:43:33 +0300 Subject: 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. --- src/interface-curses/curses-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interface-curses/curses-utils.c') diff --git a/src/interface-curses/curses-utils.c b/src/interface-curses/curses-utils.c index ace5795..1ae24f2 100644 --- a/src/interface-curses/curses-utils.c +++ b/src/interface-curses/curses-utils.c @@ -43,7 +43,7 @@ teco_curses_format_str(WINDOW *win, const gchar *str, gsize len, gint max_width) while (len > 0) { /* * NOTE: This mapping is similar to - * View::set_representations() + * teco_view_set_representations(). */ switch (*str) { case '\e': -- cgit v1.2.3