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
Ohmyzsh
Commits
f6bc949c
Commit
f6bc949c
authored
Aug 02, 2020
by
Marc Cornellà
Browse files
lib: substitute COMPLETION_WAITING_DOTS for ellipsis
Closes #8342
parent
4ab273e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/completion.zsh
View file @
f6bc949c
...
@@ -60,11 +60,7 @@ zstyle '*' single-ignored show
...
@@ -60,11 +60,7 @@ zstyle '*' single-ignored show
if
[[
$COMPLETION_WAITING_DOTS
=
true
]]
;
then
if
[[
$COMPLETION_WAITING_DOTS
=
true
]]
;
then
expand-or-complete-with-dots
()
{
expand-or-complete-with-dots
()
{
# toggle line-wrapping off and back on again
print
-Pn
"%F{red}…%f"
[[
-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
}
}
...
...
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