🐛 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 ( Add paste to replace (Cmd+Shift+V)).

Signed-off-by: iot2edge <tylerprice830@gmail.com>
Co-authored-by: iot2edge <tylerprice830@gmail.com>
This commit is contained in:
TinyClaw 2026-04-30 08:37:00 +02:00 committed by GitHub
parent 25c5bb2019
commit 400414776b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)))))