From 75041aa1e1651841073473399397bcbfc10b0134 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Sun, 13 Sep 2020 00:11:18 -0400 Subject: Switch back to Scintilla default (4.x), Scinterm, and Scintillua. Scintilla LongTerm3 maintenance is ending with upcoming Scintilla 5. Textadept now requires a C++17 compiler. Also updated Docker image. --- src/textadept.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index e9c812fc..0c68ab53 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -52,6 +52,7 @@ #include "lualib.h" #include "lauxlib.h" #include "Scintilla.h" +#include "LexLPeg.h" #if GTK #include "ScintillaWidget.h" #elif CURSES @@ -1413,6 +1414,7 @@ static void new_buffer(sptr_t doc) { //#elif CURSES // TODO: tabs #endif + SS(focused_view, SCI_SETILEXER, 0, (sptr_t)CreateLexer(NULL)); lua_pushdoc(lua, doc), lua_setglobal(lua, "buffer"); if (!initing) emit(lua, "buffer_new", -1); } @@ -2359,6 +2361,7 @@ static void new_window() { mvwin(scintilla_get_window(command_entry), LINES - 2, 0); dummy_view = scintilla_new(NULL, NULL); #endif + SS(command_entry, SCI_SETILEXER, 0, (sptr_t)CreateLexer(NULL)); register_command_entry_doc(); } -- cgit v1.2.3