This commit is contained in:
FantasyPvP
2024-11-07 13:52:28 +00:00
parent b40ecc5bb1
commit 214dfc66a5
7 changed files with 68 additions and 29 deletions
+3 -1
View File
@@ -26,10 +26,12 @@ int open_editor() {
Editor editor = editor_from("this is some text to edit\nthis is the second line\nand this is the third lol");
fprintf(stderr, "%d %d %d %d", editor.lines, editor.screen_line, editor.screen_col, editor.editmode);
while (true) {
refresh();
int c = getch();
if (editor.editmode) {
if (editor.editmode == true) {
switch (c) {
case 27:
editor.editmode = false;