fix(selection): 線分の選択と削除をアンカーから分ける (#1278)

This commit is contained in:
Ikki Nishihara
2026-10-12 07:25:36 +07:00
committed by bflatastic
parent aa15cb52bd
commit 1ac797685f
25 changed files with 384 additions and 54 deletions
+1 -1
View File
@@ -300,7 +300,7 @@ fn cut(s: &mut Session, p: &Value) -> Result<Value> {
fn clear(s: &mut Session, p: &Value) -> Result<Value> {
let explicit = if p.get("ids").is_some() { Some(checked_ids_param(s, p, "ids", "edit.clear")?) } else { None };
// Direct-selected anchors: delete those anchors instead of whole objects.
// Direct-selected anchors or segments: remove those components instead of whole objects.
if explicit.is_none() && !s.doc()?.selection.anchors.is_empty() {
return super::path::delete_anchors(s, p);
}