c9bf8b4a84d4ae392cf1bdd6a4a7c7c4f7710b92

Author
Kyle Gerard Felker <felker@anl.gov>
Committer
GitHub <noreply@github.com>
Date

Message

fix(lib): update Emacs terminal detection in `title` function (#9577)

Environment variable EMACS was replaced by INSIDE_EMACS

Diff

 1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
 2index 778f12bcacdef9d0236992dadc0f685e7c6e2070..33451ef1f93c2b496eff295741733ca83dc8dfaa 100644
 3--- a/lib/termsupport.zsh
 4+++ b/lib/termsupport.zsh
 5@@ -10,7 +10,7 @@ function title {
 6   emulate -L zsh
 7   setopt prompt_subst
 8 
 9-  [[ "$EMACS" == *term* ]] && return
10+  [[ "$INSIDE_EMACS" == *term* ]] && return
11 
12   # if $2 is unset use $1 as default
13   # if it is set and empty, leave it as is