diff options
author | Paul Scott <paul.scotto@gmail.com> | 2021-11-25 22:55:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 23:55:21 +0100 |
commit | 0314604384529fb535825bf1d93c6fdb3c5ccbbe (patch) | |
tree | 82dff68ad33a252febc5d12a8d0c4db79ba88244 /lib | |
parent | 2b96b7c54bbc86743d5550196e31f14b1b3d4951 (diff) | |
download | zsh-0314604384529fb535825bf1d93c6fdb3c5ccbbe.tar.gz zsh-0314604384529fb535825bf1d93c6fdb3c5ccbbe.tar.bz2 zsh-0314604384529fb535825bf1d93c6fdb3c5ccbbe.zip |
fix(lib): don't error if `INSIDE_EMACS` is not defined (#10443)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/termsupport.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 49f64400b..4035d10a1 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -10,7 +10,7 @@ function title { setopt localoptions nopromptsubst # Don't set the title if inside emacs, unless using vterm - [[ -n "$INSIDE_EMACS" && "$INSIDE_EMACS" != vterm ]] && return + [[ -n "${INSIDE_EMACS:-}" && "$INSIDE_EMACS" != vterm ]] && return # if $2 is unset use $1 as default # if it is set and empty, leave it as is |