mirror of
https://github.com/sharkdp/bat
synced 2026-07-22 16:53:19 +00:00
Small refactoring, handle invalid UTF-8 filenames
This commit is contained in:
+1
-1
@@ -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