mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-13 09:47:27 +02:00
Small refactoring, handle invalid UTF-8 filenames
This commit is contained in:
@ -36,7 +36,7 @@ impl<'b> Controller<'b> {
|
||||
if self.config.paging_mode != PagingMode::Never {
|
||||
let call_pager = self.config.files.iter().any(|file| {
|
||||
if let InputFile::Ordinary(ofile) = file {
|
||||
return Path::new(ofile.filename()).exists();
|
||||
return Path::new(ofile.provided_path()).exists();
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user