Merge branch 'pr-561' into batch/t5

This commit is contained in:
bflatastic
2026-10-16 01:36:08 +07:00
3 changed files with 24 additions and 3 deletions
+5 -2
View File
@@ -172,8 +172,11 @@ pub fn specs() -> Vec<CommandSpec> {
}
guides.remove(k);
let ds = s.ds_mut()?;
if ds.guide == Some((owner, k)) {
ds.guide = None;
match ds.guide {
Some((o, i)) if o == owner && i == k => ds.guide = None,
// A later guide of the same owner moves up one place; keep the selection on it.
Some((o, i)) if o == owner && i > k => ds.guide = Some((o, i - 1)),
_ => {}
}
ok()
}),