about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lcurses/window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lcurses/window.c b/src/lcurses/window.c
index 82d8dfe..72680d5 100644
--- a/src/lcurses/window.c
+++ b/src/lcurses/window.c
@@ -36,8 +36,8 @@
 @classmod curses.window
 */
 
+#include "../teliva.h"
 #include "_helpers.c"
-
 #include "chstr.c"
 
 
@@ -1313,9 +1313,9 @@ Wgetch(lua_State *L)
 
 	if (c == ERR)
 		return 0;
-	if (c == 24)  /* ctrl-x */
+	if (c == CTRL_X)
 		exit(0);
-	if (c == 5)  /* ctrl-e */
+	if (c == CTRL_E)
 		switch_to_editor(L);
 	/* handle other standard menu hotkeys here */