[zsh] comment out expand-or-complete-with-dots

This commit is contained in:
Dmytro Meleshko 2019-09-26 00:45:33 +03:00
parent a3c85fa826
commit 9e2fe80dde

View file

@ -132,19 +132,19 @@
bindkey "^[P" _palette_widget bindkey "^[P" _palette_widget
# }}} # }}}
# expand-or-complete-with-dots {{{ # # expand-or-complete-with-dots {{{
expand-or-complete-with-dots() { # expand-or-complete-with-dots() {
local wrap_ctrl_supported # local wrap_ctrl_supported
if (( ${+terminfo[rmam]} && ${+terminfo[smam]} )); then # if (( ${+terminfo[rmam]} && ${+terminfo[smam]} )); then
wrap_ctrl_supported=1 # wrap_ctrl_supported=1
fi # fi
# toggle line-wrapping off and back on again # # toggle line-wrapping off and back on again
if [[ -n "$wrap_ctrl_supported" ]]; then echoti rmam; fi # if [[ -n "$wrap_ctrl_supported" ]]; then echoti rmam; fi
print -Pn "%F{red}...%f" # print -Pn "%F{red}...%f"
if [[ -n "$wrap_ctrl_supported" ]]; then echoti smam; fi # if [[ -n "$wrap_ctrl_supported" ]]; then echoti smam; fi
zle expand-or-complete # zle expand-or-complete
zle redisplay # zle redisplay
} # }
zle -N expand-or-complete-with-dots # zle -N expand-or-complete-with-dots
bindkey "^I" expand-or-complete-with-dots # bindkey "^I" expand-or-complete-with-dots
# }}} # # }}}