zsh: unset _ghostty_file in the early exit path

If we're running a too-old version of zsh, we exit early. This skipped
the _ghostty_file cleanup path below.
pull/8281/head
Jon Parise 2025-08-19 10:36:26 -04:00
parent f430c03ff3
commit e8a60a375c
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ fi
'builtin' 'autoload' '--' 'is-at-least'
'is-at-least' "5.1" || {
builtin echo "ZSH ${ZSH_VERSION} is too old for ghostty shell integration" > /dev/stderr
'builtin' 'unset' '_ghostty_file'
return
}
# ${(%):-%x} is the path to the current file.