mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-06 14:21:14 -03:00
Re-read terminal modes after config.fish
Before now, we would be getting the terminal modes before config.fish, then running config.fish without any of the term "stealing" and modes copying. This meant that changes made to the terminal modes in there were simply lost. So, what we do is simply set the modes before config and then copy them after, once. Note that this does *not* turn off flow control again - if you turn it on in config.fish that should work. Fixes #7783.
This commit is contained in:
@@ -491,6 +491,9 @@ int main(int argc, char **argv) {
|
||||
if (!opts.no_exec) {
|
||||
read_init(parser, paths);
|
||||
}
|
||||
// Re-read the terminal modes after config, it might have changed them.
|
||||
term_copy_modes();
|
||||
|
||||
// Stomp the exit status of any initialization commands (issue #635).
|
||||
parser.set_last_statuses(statuses_t::just(STATUS_CMD_OK));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user