about summary refs log tree commit diff stats
path: root/src/kilo.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-06 12:15:41 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-11-06 12:15:41 -0700
commit9b99cd2a5609150726b484cd69b14c662e095e8d (patch)
tree85c915e6740a46a4de38fdb8358b6f765c444e3e /src/kilo.c
parent2b580e41745900aeaef000f575c26f127d30bca2 (diff)
downloadteliva-9b99cd2a5609150726b484cd69b14c662e095e8d.tar.gz
.
Diffstat (limited to 'src/kilo.c')
-rw-r--r--src/kilo.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/kilo.c b/src/kilo.c
index 1b321fc..fbcb43e 100644
--- a/src/kilo.c
+++ b/src/kilo.c
@@ -1157,10 +1157,6 @@ void editorMoveCursor(int key) {
 #define KILO_QUIT_TIMES 3
 int Quit = 0;
 void editorProcessKeypress(int fd) {
-    /* When the file is modified, requires Ctrl-q to be pressed N times
-     * before actually quitting. */
-    static int quit_times = KILO_QUIT_TIMES;
-
     int c = editorReadKey(fd);
     switch(c) {
     case ENTER:
@@ -1213,8 +1209,6 @@ void editorProcessKeypress(int fd) {
         editorInsertChar(c);
         break;
     }
-
-    quit_times = KILO_QUIT_TIMES; /* Reset it to the original value. */
 }
 
 int editorFileWasModified(void) {