do_first_line(), do_last_line()
- Move these functions here from winio.c. (DLR)
- nano.c:
- do_toggle(), finish()
+ finish()
- Call blank_statusbar() and blank_bottombars() to blank out
the statusbar and shortcut list in bottomwin. (DLR)
+ - Since all of the calls to finish() use 0 for the value of
+ sigage, and the return value of finish() is never used, make
+ it accept and return void. (David Benbennick)
do_early_abort()
- Removed, as it's no longer called anywhere. (David Benbennick)
open_pipe()
SLsmg_reset_smg() and SLsmg_init_smg(), and then reinitialize
all windows via window_init(). (DLR, adapted from code in
Minimum Profit 3.3.0 and mutt 1.4.2.1, respectively)
+ do_toggle()
+ - Call blank_statusbar() and blank_bottombars() to blank out
+ the statusbar and shortcut list in bottomwin. (DLR)
do_verbatim_input()
- If PRESERVE is set, disable flow control characters before
getting input and reenable them after getting input. (DLR)
static sigjmp_buf jmpbuf; /* Used to return to mainloop after SIGWINCH */
#endif
-/* What we do when we're all set to exit */
-RETSIGTYPE finish(int sigage)
+/* What we do when we're all set to exit. */
+void finish(void)
{
if (!ISSET(NO_HELP))
blank_bottombars();
thanks_for_all_the_fish();
#endif
- exit(sigage);
+ exit(0);
}
/* Die (gracefully?) */
}
else
#endif
- finish(0);
+ finish();
}
if (ISSET(TEMP_OPT))
}
else
#endif
- finish(0);
+ finish();
}
} else if (i == 0) {
}
else
#endif
- finish(0);
+ finish();
} else
statusbar(_("Cancelled"));
int do_right(void);
/* Public functions in nano.c */
-RETSIGTYPE finish(int sigage);
+void finish(void);
void die(const char *msg, ...);
void die_save_file(const char *die_filename);
void die_too_small(void);