From 5cc9701fd1ac321609ba48029c022f287c81b9e1 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 22 Jul 2024 18:41:03 +0800 Subject: [PATCH] .. --- yazi-scheduler/src/process/shell.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yazi-scheduler/src/process/shell.rs b/yazi-scheduler/src/process/shell.rs index 2af502ec..84978b05 100644 --- a/yazi-scheduler/src/process/shell.rs +++ b/yazi-scheduler/src/process/shell.rs @@ -79,7 +79,7 @@ mod parser { while let Some(c) = it.next() { 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 { buf.push(c); } else { @@ -88,7 +88,7 @@ mod parser { } else if c == w!('"') && it.peek().is_some_and(|&c| c == w!('%')) { 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 { buf.push(c); buf.push(w!('%')); @@ -103,7 +103,7 @@ mod parser { OsString::from_wide(&buf) } - fn visit_at( + fn visit_percent( mut it: Peekable, buf: &mut Vec, args: &[OsString],