diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-26 16:26:13 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-26 16:26:13 -0800 |
commit | e699b5a052e7e5b2de89dfb0955e63d5349bf964 (patch) | |
tree | 2a68234f011f08c19088ca5d77ee533df41ff0da /src/kilo.c | |
parent | 5bc52a5cbad9aed906a2f17170352d4363e721ad (diff) | |
download | teliva-e699b5a052e7e5b2de89dfb0955e63d5349bf964.tar.gz |
dedup an enum
Diffstat (limited to 'src/kilo.c')
-rw-r--r-- | src/kilo.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/kilo.c b/src/kilo.c index 22cf624..ef2e345 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -51,6 +51,7 @@ #include <fcntl.h> #include "lua.h" +#include "teliva.h" /* Syntax highlight types */ #define HL_NORMAL 0 @@ -101,25 +102,6 @@ struct editorConfig { static struct editorConfig E; -enum KEY_ACTION { - KEY_NULL = 0, - CTRL_B = 2, - CTRL_C = 3, - CTRL_D = 4, - CTRL_E = 5, - CTRL_F = 6, - CTRL_G = 7, - CTRL_H = 8, - TAB = 9, - ENTER = 10, - CTRL_L = 12, - CTRL_Q = 17, - CTRL_S = 19, - CTRL_U = 21, - CTRL_X = 24, - ESC = 27, -}; - static void editorSetStatusMessage(const char *fmt, ...); /* =========================== Syntax highlights DB ========================= |