diff options
| author | 张天泽 <35888946+zhangtianze1997@users.noreply.github.com> | 2024-03-02 16:12:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-02 09:12:34 +0100 |
| commit | 2c62584b8389cb9510c12f7c28b5ca7970619277 (patch) | |
| tree | 0966b579d2a0853fd661fc9f91ae34bdd2a9b6a9 | |
| parent | 8e088ded8289a9db2a9f2c03cab618d6dd017dd7 (diff) | |
| download | zsh-2c62584b8389cb9510c12f7c28b5ca7970619277.tar.gz zsh-2c62584b8389cb9510c12f7c28b5ca7970619277.tar.bz2 zsh-2c62584b8389cb9510c12f7c28b5ca7970619277.zip | |
fix(tmux): use full offset parameter (#12249)
| -rw-r--r-- | plugins/tmux/tmux.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index 11550d687..791592d8f 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/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 \"\$@\" |
