mirror of
https://github.com/sharkdp/bat
synced 2024-11-27 22:30:33 +00:00
terminal title is only set when pager is being used
This commit is contained in:
parent
fd84e4f49f
commit
12b74dfb4e
1 changed files with 3 additions and 1 deletions
|
@ -242,7 +242,9 @@ fn set_terminal_title_to_inputs_names(inputs: &Vec<Input>) {
|
|||
fn run_controller(inputs: Vec<Input>, config: &Config, cache_dir: &Path) -> Result<bool> {
|
||||
let assets = assets_from_cache_or_binary(config.use_custom_assets, cache_dir)?;
|
||||
let controller = Controller::new(config, &assets);
|
||||
set_terminal_title_to_inputs_names(&inputs);
|
||||
if config.paging_mode != PagingMode::Never {
|
||||
set_terminal_title_to_inputs_names(&inputs);
|
||||
}
|
||||
controller.run(inputs, None)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue