permission files
Build and Deploy Docs / build (push) Failing after 43s

This commit is contained in:
Arthur Barraux
2025-10-06 11:28:49 +02:00
parent 29a92ce904
commit ce94e9fb87
5 changed files with 84 additions and 78 deletions
+2
View File
@@ -68,6 +68,7 @@ struct editorConfig {
struct keyBind_t* key_binds; struct keyBind_t* key_binds;
int number_of_keybinds; int number_of_keybinds;
}; };
/** /**
@@ -82,4 +83,5 @@ struct abuf {
extern struct editorConfig E; extern struct editorConfig E;
#endif #endif
+1
View File
@@ -1,6 +1,7 @@
#ifndef INIT_H_ #ifndef INIT_H_
#define INIT_H_ #define INIT_H_
#include "builtins.h"
#include "data.h" #include "data.h"
#include "terminal.h" #include "terminal.h"
#include <stdio.h> #include <stdio.h>
+1
View File
@@ -5,6 +5,7 @@
#include "define.h" #include "define.h"
#include "output.h" #include "output.h"
#include "terminal.h" #include "terminal.h"
#include "builtins.h"
#include <unistd.h> #include <unistd.h>
// KEYS keycode // KEYS keycode
+3 -1
View File
@@ -5,7 +5,8 @@
* interactions. \version 0.1 \date 21 septembre 2024 * interactions. \version 0.1 \date 21 septembre 2024
*/ */
#include <stdio.h> #include <unistd.h>
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#define _BSD_SOURCE #define _BSD_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE
@@ -32,6 +33,7 @@ int main(int argc, char *argv[]) {
editorSetStatusMessage("HELP: Ctrl-S = save | Ctrl-Q = quit"); editorSetStatusMessage("HELP: Ctrl-S = save | Ctrl-Q = quit");
while (1) { while (1) {
editorRefreshScreen(); editorRefreshScreen();
editorProcessKeypress(); editorProcessKeypress();
+1 -1
View File
@@ -49,7 +49,6 @@ void editorCloseFile(void) {
E.filename = NULL; E.filename = NULL;
E.status_msg[0] = '\0'; E.status_msg[0] = '\0';
E.status_msg_time = 0; E.status_msg_time = 0;
} }
void editorOpen(char *filename) { void editorOpen(char *filename) {
@@ -58,6 +57,7 @@ void editorOpen(char *filename) {
// Test if a file is already open // Test if a file is already open
if (E.filename != NULL) { if (E.filename != NULL) {
editorCloseFile(); editorCloseFile();
E.state = READ_AND_WRITE;
} }
free(E.filename); free(E.filename);