This commit is contained in:
sxyazi 2025-07-23 14:58:05 +08:00
parent 7cd287e8f5
commit 44fdb2609d
No known key found for this signature in database
4 changed files with 7 additions and 10 deletions

8
Cargo.lock generated
View file

@ -1217,9 +1217,9 @@ dependencies = [
[[package]] [[package]]
name = "io-uring" name = "io-uring"
version = "0.7.8" version = "0.7.9"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b86e202f00093dcba4275d4636b93ef9dd75d025ae560d2521b45ea28ab49013" checksum = "d93587f37623a1a17d94ef2bc9ada592f5465fe7732084ab7beefabe5c77c0c4"
dependencies = [ dependencies = [
"bitflags 2.9.1", "bitflags 2.9.1",
"cfg-if", "cfg-if",
@ -2155,9 +2155,9 @@ dependencies = [
[[package]] [[package]]
name = "redox_syscall" name = "redox_syscall"
version = "0.5.14" version = "0.5.15"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de3a5d9f0aba1dbcec1cc47f0ff94a4b778fe55bca98a6dfa92e4e094e57b1c4" checksum = "7e8af0dde094006011e6a740d4879319439489813bd0bcdc7d821beaeeff48ec"
dependencies = [ dependencies = [
"bitflags 2.9.1", "bitflags 2.9.1",
] ]

View file

@ -20,7 +20,7 @@ impl Actor for Rename {
fn act(cx: &mut Ctx, opt: Self::Options) -> Result<Data> { fn act(cx: &mut Ctx, opt: Self::Options) -> Result<Data> {
act!(mgr:escape_visual, cx)?; act!(mgr:escape_visual, cx)?;
if !opt.hovered && !cx.tab_mut().selected.is_empty() { if !opt.hovered && !cx.tab().selected.is_empty() {
return act!(mgr:bulk_rename, cx); return act!(mgr:bulk_rename, cx);
} }

View file

@ -50,10 +50,7 @@ impl App {
succ!(self.core.tasks.plugin_micro(opt)); succ!(self.core.tasks.plugin_micro(opt));
} }
match runtime_mut!(LUA) { runtime_mut!(LUA)?.push(&opt.id);
Ok(mut r) => r.push(&opt.id),
Err(e) => succ!(warn!("{e}")),
}
defer! { _ = runtime_mut!(LUA).map(|mut r| r.pop()) } defer! { _ = runtime_mut!(LUA).map(|mut r| r.pop()) }
let plugin = match LOADER.load_with(&LUA, &opt.id, chunk) { let plugin = match LOADER.load_with(&LUA, &opt.id, chunk) {

View file

@ -98,7 +98,6 @@ impl<'a> Executor<'a> {
on!(visual_mode); on!(visual_mode);
// Operation // Operation
on!(bulk_rename);
on!(open); on!(open);
on!(open_do); on!(open_do);
on!(yank); on!(yank);
@ -116,6 +115,7 @@ impl<'a> Executor<'a> {
on!(linemode); on!(linemode);
on!(search); on!(search);
on!(search_do); on!(search_do);
on!(bulk_rename);
// Filter // Filter
on!(filter); on!(filter);