Browse Source

fix(tmux): use full offset parameter (#12249)

张天泽 4 months ago
parent
commit
2c62584b83
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/tmux/tmux.plugin.zsh

+ 1 - 1
plugins/tmux/tmux.plugin.zsh

@@ -49,7 +49,7 @@ fi
 # ALIASES
 function _build_tmux_alias {
   eval "function $1 {
-    if [[ -z \$1 ]] || [[ \${1::1} == '-' ]]; then
+    if [[ -z \$1 ]] || [[ \${1:0:1} == '-' ]]; then
       tmux $2 \"\$@\"
     else
       tmux $2 $3 \"\$@\"