diff --git a/src/nano.c b/src/nano.c index e974f34b..7fe3dd21 100644 --- a/src/nano.c +++ b/src/nano.c @@ -351,6 +351,11 @@ void die(const char *msg, ...) { va_list ap; openfilestruct *firstone = openfile; + static int stabs = 0; + + /* When dying for a second time, just give up. */ + if (++stabs > 1) + exit(11); restore_terminal();