From e2965f7ea63a5426e018c4e8c7f557fcce4c69c0 Mon Sep 17 00:00:00 2001 From: Oskar Date: Tue, 7 Nov 2023 23:12:31 +0100 Subject: Added edit mode and function to write the changes to file. Write function is not completely done yet because the temp file created by it is not removed when it is done. But other than that the editor actually works now. There are still some quirks that i need to sort out, especially the fact that you cant actually create a new line beyond the amount in the file you are editing --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5e2326b..6746525 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ all: 7ed 7ed: - gcc -Wfatal-errors -Wall -Werror -Wextra -g 7ed.c functions.c startmode.c -o 7ed + gcc -Wfatal-errors -Wall -Werror -Wextra -g 7ed.c functions.c startmode.c editmode.c -o 7ed + cp 7ed test + mv test/7ed test/7ed-test clean: - rm -f 7ed \ No newline at end of file + rm -f 7ed + rm -f test/7ed-test -- cgit v1.2.3