fix(macos): void-variable newwindow? error

Amend: ec2062f517
This commit is contained in:
Álan Crístoffer 2022-06-29 18:12:43 +02:00 committed by GitHub
parent bc32e2ec4c
commit c2f8476c86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@
"write" "com.googlecode.iterm2" "OpenFileInNewWindows" "write" "com.googlecode.iterm2" "OpenFileInNewWindows"
"-bool" (if bool "true" "false")))) "-bool" (if bool "true" "false"))))
(let ((newwindow? (let ((newwindow?
(if newwindow? (not (equal (read-newwindows) "1"))))) (if ,newwindow? (not (equal (read-newwindows) "1")))))
(when newwindow? (when newwindow?
(write-newwindows t)) (write-newwindows t))
(unwind-protect (+macos-open-with "iTerm" ,dir) (unwind-protect (+macos-open-with "iTerm" ,dir)