Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
9bd88bb9
Commit
9bd88bb9
authored
Sep 19, 2015
by
Robby Russell
Browse files
Merge pull request #4251 from mcornella/fix-completion-dots
Fix completion waiting dots function
parents
4f1caf09
b42efeb8
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/completion.zsh
View file @
9bd88bb9
...
...
@@ -58,9 +58,13 @@ zstyle ':completion:*:*:*:users' ignored-patterns \
# ... unless we really want to.
zstyle
'*'
single-ignored show
if
[
"x
$COMPLETION_WAITING_DOTS
"
=
"x
true
"
]
;
then
if
[
[
$COMPLETION_WAITING_DOTS
=
true
]
]
;
then
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 redisplay
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment