aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.h b/src/nnn.h
index 3763883..a832939 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -32,7 +32,7 @@
#include <curses.h>
-#define CONTROL(c) ((c) ^ 0x40)
+#define CONTROL(c) ((c) & 0x1f)
/* Supported actions */
enum action {