Clean up input initialization and destruction

This commit is contained in:
ridiculousfish
2019-03-03 12:59:55 -08:00
parent dc1073f905
commit ecf51b575e
6 changed files with 8 additions and 25 deletions

View File

@@ -1731,7 +1731,7 @@ static void reader_interactive_init() {
// See if we are running interactively.
pid_t shell_pgid;
if (!input_initialized) init_input();
init_input();
shell_pgid = getpgrp();
// This should enable job control on fish, even if our parent process did not enable it for us.
@@ -1846,7 +1846,6 @@ static void reader_interactive_init() {
/// Destroy data for interactive use.
static void reader_interactive_destroy() {
outputter_t::stdoutput().set_color(rgb_color_t::reset(), rgb_color_t::reset());
input_destroy();
}
void reader_sanity_check() {