mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix linux build break
This commit is contained in:
parent
c85bbe7fe4
commit
67c761bf8a
1 changed files with 4 additions and 1 deletions
|
|
@ -74,7 +74,10 @@ impl<'a> Folder<'a> {
|
|||
#[cfg(target_os = "windows")]
|
||||
let (head, body, tail) = finder.explode(short.name.to_string_lossy().as_bytes())?;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
let (head, body, tail) = finder.explode(short.name.as_bytes())?;
|
||||
let (head, body, tail) = {
|
||||
use std::os::unix::ffi::OsStrExt;
|
||||
finder.explode(short.name.as_bytes())?
|
||||
};
|
||||
|
||||
// TODO: to be configured by THEME?
|
||||
let style = Style::new().fg(Color::Rgb(255, 255, 50)).add_modifier(Modifier::ITALIC);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue