delete line macro
Build project / build (push) Has been cancelled

This commit is contained in:
arthur
2025-11-03 16:05:25 +01:00
parent 1d253e51ef
commit 6a201b3ebc
4 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -29,6 +29,6 @@
(map-key "PAGE-UP" move-cursor-page-up)
(map-key "PAGE-DOWN" move-cursor-page-down)
(map-key "CTRL-o" editor-open-file)
(map-key "CTRL-k" editor-del-row)
+1
View File
@@ -31,4 +31,5 @@ Lisp editorPrintC(Lisp args, LispError *e, LispContext ctx);
Lisp addPackage(Lisp args, LispError *e, LispContext ctx);
Lisp editorDelRow_L(Lisp args, LispError *e, LispContext ctx);
#endif
+7
View File
@@ -3,6 +3,7 @@
#include "../include/input.h"
#include "../include/file_io.h"
#include "../include/editor_op.h"
#include "../include/row_op.h"
#include "../include/data.h"
#include <stdio.h>
@@ -155,3 +156,9 @@ Lisp addPackage(Lisp args, LispError *e, LispContext ctx) {
return lisp_null();
}
Lisp editorDelRow_L(Lisp args, LispError *e, LispContext ctx) {
editorDelRow(E.cursor_y);
return lisp_null();
}
+1
View File
@@ -32,6 +32,7 @@ void initBuiltins() {
registerBuiltin("EDITOR-OPEN-FILE", editorOpenFile);
registerBuiltin("EDITOR-INSERT-CHAR", editorPrintC);
registerBuiltin("ADD-PACKAGE", addPackage);
registerBuiltin("EDITOR-DEL-ROW", editorDelRow_L);
}
void initEditor() {