浏览代码

Use proper if comparison

Marc Cornellà 8 年之前
父节点
当前提交
3976e04035
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/completion.zsh

+ 1 - 1
lib/completion.zsh

@@ -58,7 +58,7 @@ zstyle ':completion:*:*:*:users' ignored-patterns \
 # ... unless we really want to.
 zstyle '*' single-ignored show
 
-if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; then
+if [[ $COMPLETION_WAITING_DOTS = true ]]; then
   expand-or-complete-with-dots() {
     echo -n "\e[31m......\e[0m"
     zle expand-or-complete