From 4e7e30dec1f7573844d7a332d2d1860631c64ded Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 12 May 2026 22:08:00 +0200 Subject: [PATCH] Update path selection check to include pathPoints --- src/commands/delete-path-command.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/delete-path-command.ts b/src/commands/delete-path-command.ts index b6451737..a6540f1c 100644 --- a/src/commands/delete-path-command.ts +++ b/src/commands/delete-path-command.ts @@ -8,7 +8,8 @@ import type { EditorCommand } from "./command"; function selectionIncludesPath(selection: EditorSelection, pathId: string): boolean { return ( (selection.kind === "paths" && selection.ids.includes(pathId)) || - (selection.kind === "pathPoint" && selection.pathId === pathId) + (selection.kind === "pathPoint" && selection.pathId === pathId) || + (selection.kind === "pathPoints" && selection.pathId === pathId) ); }