mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Bravely stop initializing the term size from reader_init
The terminal size in all cases should have been initialized in env_init, so no reason to do it here. No user visible change expected from this.
This commit is contained in:
parent
b3de630d40
commit
4d3261dadc
1 changed files with 1 additions and 6 deletions
|
@ -1391,8 +1391,7 @@ void reader_data_t::exec_prompt() {
|
|||
}
|
||||
|
||||
void reader_init() {
|
||||
parser_t &parser = parser_t::principal_parser();
|
||||
auto &vars = parser.vars();
|
||||
auto &vars = parser_t::principal_parser().vars();
|
||||
|
||||
// Ensure this var is present even before an interactive command is run so that if it is used
|
||||
// in a function like `fish_prompt` or `fish_right_prompt` it is defined at the time the first
|
||||
|
@ -1423,10 +1422,6 @@ void reader_init() {
|
|||
if (is_interactive_session() && getpgrp() == tcgetpgrp(STDIN_FILENO)) {
|
||||
term_donate(/* quiet */ true);
|
||||
}
|
||||
|
||||
// We do this not because we actually need the window size but for its side-effect of correctly
|
||||
// setting the COLUMNS and LINES env vars.
|
||||
termsize_container_t::shared().updating(parser);
|
||||
}
|
||||
|
||||
/// Restore the term mode if we own the terminal and are interactive (#8705).
|
||||
|
|
Loading…
Reference in a new issue