We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a54a88f commit a30b49cCopy full SHA for a30b49c
geometry.zsh
@@ -140,10 +140,8 @@ add-zsh-hook precmd geometry::prompt
140
add-zsh-hook precmd geometry::rprompt
141
142
geometry::info() { # draw info if no command is given
143
- [[ -n "$BUFFER" ]] && { builtin zle accept-line && builtin return; }
144
- [[ -z "$GEOMETRY_INFO" ]] && { builtin zle accept-line && builtin return; }
145
- builtin echo ${(%):-$(geometry::wrap $PWD $GEOMETRY_INFO)}
146
- geometry::prompt
+ ([[ -n "$BUFFER" ]] || [[ -z "$GEOMETRY_INFO" ]]) && zle accept-line && return
+ zle -M "${(%):-$(geometry::wrap $PWD $GEOMETRY_INFO)}"
147
}
148
builtin zle -N buffer-empty geometry::info
149
builtin bindkey '^M' buffer-empty
0 commit comments