mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
Merge pull request #4251 from mcornella/fix-completion-dots
Fix completion waiting dots function
This commit is contained in:
commit
9bd88bb9aa
1 changed files with 6 additions and 2 deletions
|
@ -58,9 +58,13 @@ zstyle ':completion:*:*:*:users' ignored-patterns \
|
||||||
# ... unless we really want to.
|
# ... unless we really want to.
|
||||||
zstyle '*' single-ignored show
|
zstyle '*' single-ignored show
|
||||||
|
|
||||||
if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; then
|
if [[ $COMPLETION_WAITING_DOTS = true ]]; then
|
||||||
expand-or-complete-with-dots() {
|
expand-or-complete-with-dots() {
|
||||||
echo -n "\e[31m......\e[0m"
|
# toggle line-wrapping off and back on again
|
||||||
|
[[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti rmam
|
||||||
|
print -Pn "%{%F{red}......%f%}"
|
||||||
|
[[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti smam
|
||||||
|
|
||||||
zle expand-or-complete
|
zle expand-or-complete
|
||||||
zle redisplay
|
zle redisplay
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue