lib: correct :q syntax in title function for clarity
Diff
1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
2index 682925211d5cad168572295226e77aa7ca7fda4f..235efec6a3296f77acfdde1eb8d8e3ae3d988a97 100644
3--- a/lib/termsupport.zsh
4+++ b/lib/termsupport.zsh
5@@ -18,16 +18,16 @@ function title {
6 7 case "$TERM" in
8 cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*)
9- print -Pn "\e]2;$2:q\a" # set window name
10- print -Pn "\e]1;$1:q\a" # set tab name
11+ print -Pn "\e]2;${2:q}\a" # set window name
12+ print -Pn "\e]1;${1:q}\a" # set tab name
13 ;;
14 screen*|tmux*)
15- print -Pn "\ek$1:q\e\\" # set screen hardstatus
16+ print -Pn "\ek${1:q}\e\\" # set screen hardstatus
17 ;;
18 *)
19 if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
20- print -Pn "\e]2;$2:q\a" # set window name
21- print -Pn "\e]1;$1:q\a" # set tab name
22+ print -Pn "\e]2;${2:q}\a" # set window name
23+ print -Pn "\e]1;${1:q}\a" # set tab name
24 else
25 # Try to use terminfo to set the title
26 # If the feature is available set title