Automatically run history command on <return>
15306401eba541630519274d9db0cd97382ccadb
1 parent
ef53cbd7
.fzy.zsh
+1 -0
| 41 | 41 | local ret=$? |
|
| 42 | 42 | if [[ -n ${selected} ]]; then |
|
| 43 | 43 | num=${selected[1]} |
|
| 44 | 44 | if [[ -n ${num} ]]; then |
|
| 45 | 45 | zle vi-fetch-history -n ${num} |
|
| 46 | + | zle accept-line "$LBUFFER" |
|
| 46 | 47 | fi |
|
| 47 | 48 | fi |
|
| 48 | 49 | zle redisplay |
|
| 49 | 50 | typeset -f zle-line-init >/dev/null && zle zle-line-init |
|
| 50 | 51 | return $ret |