macos: fix new tab crash (#10924)

It was introduced in 2a81d8cd2910b12fe007f0bc5fb5d6be57f0f0fe[0]. We
lost the subview. prefix of from the contains() call.


Fixes: https://github.com/ghostty-org/ghostty/issues/10923
Link:
2a81d8cd29
[0]
This commit is contained in:
Mitchell Hashimoto
2026-02-21 07:25:24 -08:00
committed by GitHub

View File

@@ -65,7 +65,7 @@ extension NSView {
return true
}
for subview in subviews where contains(className: name) {
for subview in subviews where subview.contains(className: name) {
return true
}