fix(zsh): reintroduce self_insert for tooltips

resolves #2289
This commit is contained in:
Jan De Dobbeleer 2022-05-19 20:30:50 +02:00 committed by Jan De Dobbeleer
parent 1b7b14895b
commit 467428f514

View file

@ -42,7 +42,7 @@ if [ "$TERM" != "linux" ]; then
_install-omp-hooks _install-omp-hooks
fi fi
function _render_tooltip() { function self-insert() {
# ignore an empty buffer # ignore an empty buffer
if [[ -z "$BUFFER" ]]; then if [[ -z "$BUFFER" ]]; then
zle .self-insert zle .self-insert
@ -58,8 +58,7 @@ function _render_tooltip() {
} }
function enable_poshtooltips() { function enable_poshtooltips() {
zle -N _render_tooltip zle -N self-insert
bindkey " " _render_tooltip
} }
_posh-zle-line-init() { _posh-zle-line-init() {