From 400414776be1d15da0bec50369909c85908178eb Mon Sep 17 00:00:00 2001 From: TinyClaw Date: Thu, 30 Apr 2026 08:37:00 +0200 Subject: [PATCH] :bug: Fix :heigth typo in clipboard frame-same-size? (#9250) The height comparison in frame-same-size? used the misspelled keyword :heigth on both sides. (:heigth selrect) returns nil for any selrect, so (= nil nil) is always true and the function degenerated to a width-only comparison. Result: the 'paste next to selected frame' branch in clipboard.cljs fired whenever pasted-content width matched a target frame's width, even if the heights differed. Introduced in #9033 (:sparkles: Add paste to replace (Cmd+Shift+V)). Signed-off-by: iot2edge Co-authored-by: iot2edge --- frontend/src/app/main/data/workspace/clipboard.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace/clipboard.cljs b/frontend/src/app/main/data/workspace/clipboard.cljs index 72f94ecdc4..e5d6dbd19b 100644 --- a/frontend/src/app/main/data/workspace/clipboard.cljs +++ b/frontend/src/app/main/data/workspace/clipboard.cljs @@ -547,8 +547,8 @@ (defn- frame-same-size? [paste-obj frame-obj] (and - (= (:heigth (:selrect (first (vals paste-obj)))) - (:heigth (:selrect frame-obj))) + (= (:height (:selrect (first (vals paste-obj)))) + (:height (:selrect frame-obj))) (= (:width (:selrect (first (vals paste-obj)))) (:width (:selrect frame-obj)))))