mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
39cbded98d
commit
5cc9701fd1
1 changed files with 3 additions and 3 deletions
|
|
@ -79,7 +79,7 @@ mod parser {
|
||||||
|
|
||||||
while let Some(c) = it.next() {
|
while let Some(c) = it.next() {
|
||||||
if c == w!('%') {
|
if c == w!('%') {
|
||||||
let n = visit_at(it.clone(), &mut buf, &args, false);
|
let n = visit_percent(it.clone(), &mut buf, &args, false);
|
||||||
if n == 0 {
|
if n == 0 {
|
||||||
buf.push(c);
|
buf.push(c);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -88,7 +88,7 @@ mod parser {
|
||||||
} else if c == w!('"') && it.peek().is_some_and(|&c| c == w!('%')) {
|
} else if c == w!('"') && it.peek().is_some_and(|&c| c == w!('%')) {
|
||||||
it.next();
|
it.next();
|
||||||
|
|
||||||
let n = visit_at(it.clone(), &mut buf, &args, true);
|
let n = visit_percent(it.clone(), &mut buf, &args, true);
|
||||||
if n == 0 {
|
if n == 0 {
|
||||||
buf.push(c);
|
buf.push(c);
|
||||||
buf.push(w!('%'));
|
buf.push(w!('%'));
|
||||||
|
|
@ -103,7 +103,7 @@ mod parser {
|
||||||
OsString::from_wide(&buf)
|
OsString::from_wide(&buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn visit_at(
|
fn visit_percent(
|
||||||
mut it: Peekable<EncodeWide>,
|
mut it: Peekable<EncodeWide>,
|
||||||
buf: &mut Vec<u16>,
|
buf: &mut Vec<u16>,
|
||||||
args: &[OsString],
|
args: &[OsString],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue