mirror of
https://github.com/sharkdp/bat.git
synced 2025-03-13 22:28:26 +00:00
Merge a59b69a6bb660abd2940f7e7558e0d87289d4310 into 6fc58821a53e8dff0690a1f6a144cee6d4676b71
This commit is contained in:
commit
122aef4427
@ -16,6 +16,7 @@
|
||||
- Fix handling of inputs with OSC ANSI escape sequences, see #2541 and #2544 (@eth-p)
|
||||
- Fix handling of inputs with combined ANSI color and attribute sequences, see #2185 and #2856 (@eth-p)
|
||||
- Fix panel width when line 10000 wraps, see #2854 (@eth-p)
|
||||
- Only start offload worker thread when there's more than 1 core #2956 (@cyqsimon)
|
||||
|
||||
## Other
|
||||
|
||||
|
@ -2,6 +2,7 @@ use std::collections::HashSet;
|
||||
use std::env;
|
||||
use std::io::IsTerminal;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::thread::available_parallelism;
|
||||
|
||||
use crate::{
|
||||
clap_app,
|
||||
@ -126,7 +127,9 @@ impl App {
|
||||
// start building glob matchers for builtin mappings immediately
|
||||
// this is an appropriate approach because it's statistically likely that
|
||||
// all the custom mappings need to be checked
|
||||
syntax_mapping.start_offload_build_all();
|
||||
if available_parallelism()?.get() > 1 {
|
||||
syntax_mapping.start_offload_build_all();
|
||||
}
|
||||
|
||||
if let Some(values) = self.matches.get_many::<String>("ignored-suffix") {
|
||||
for suffix in values {
|
||||
|
Loading…
x
Reference in New Issue
Block a user