diff options
-rw-r--r-- | src/kilo.c | 6 |
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) { |