aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2020-09-13 00:11:18 -0400
committermitchell <70453897+orbitalquark@users.noreply.github.com>2020-09-13 00:11:18 -0400
commit75041aa1e1651841073473399397bcbfc10b0134 (patch)
tree965fe5833bbae19d9be87dcc5a2a2a159a418523 /src/textadept.c
parent040625ef4426a6ffe0e057f1fbc3e91f1e9661de (diff)
downloadtextadept-75041aa1e1651841073473399397bcbfc10b0134.tar.gz
textadept-75041aa1e1651841073473399397bcbfc10b0134.zip
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.
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c3
1 files changed, 3 insertions, 0 deletions
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();
}