mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
0dbe509aa1
commit
84eabc42da
1 changed files with 1 additions and 7 deletions
|
|
@ -63,13 +63,7 @@ impl Url {
|
|||
lua.create_string(me.as_os_str().as_encoded_bytes())
|
||||
});
|
||||
reg.add_meta_method(MetaMethod::Concat, |lua, lhs, rhs: mlua::String| {
|
||||
let me = lhs.as_os_str().as_encoded_bytes();
|
||||
let other = rhs.as_bytes();
|
||||
|
||||
let mut out = Vec::with_capacity(me.len() + other.len());
|
||||
out.extend_from_slice(me);
|
||||
out.extend_from_slice(&other);
|
||||
lua.create_string(out)
|
||||
lua.create_string([lhs.as_os_str().as_encoded_bytes(), rhs.as_bytes().as_ref()].concat())
|
||||
});
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue