mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: multiline formatting meant to be single line
This commit is contained in:
parent
89d73954fd
commit
2283937feb
1 changed files with 1 additions and 6 deletions
|
|
@ -58,12 +58,7 @@ impl File {
|
|||
Some(lua.create_string(p.as_path().as_os_str().as_encoded_bytes())).transpose()
|
||||
});
|
||||
reg.add_method("icon", |lua, me, ()| {
|
||||
THEME
|
||||
.icons
|
||||
.iter()
|
||||
.find(|&x| x.matches(me))
|
||||
.map(|x| Icon::cast(lua, x))
|
||||
.transpose()
|
||||
THEME.icons.iter().find(|&x| x.matches(me)).map(|x| Icon::cast(lua, x)).transpose()
|
||||
});
|
||||
reg.add_method("style", |lua, me, ()| {
|
||||
let cx = lua.named_registry_value::<CtxRef>("cx")?;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue