diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-03 14:48:57 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-03 14:55:02 +0900 |
| commit | 9dfca77c36d15df321e7f13b0afc72af77a03cd5 (patch) | |
| tree | 7ef901ac4c134c0519a7dffe64752e422e89d2c8 /shell/completion.bash | |
| parent | 82c4af29028d6035832cf3ab58bafb4fd9605f60 (diff) | |
| download | fzf-9dfca77c36d15df321e7f13b0afc72af77a03cd5.tar.gz | |
[zsh] Keep current $BUFFER on ALT-C
Ideally, we could only use `print -sr` to update the command history.
However, the "cd" command by ALT-C is added to the history only after we
finalize the current command by pressing an additional enter key.
i.e. The cd command from ALT-C is not visible when you hit Up arrow. But
it appears once you hit enter key.
So when the current buffer is empty, we use `zle accept-line` so that
the command history is immediately updated.
Close #2200
Diffstat (limited to 'shell/completion.bash')
0 files changed, 0 insertions, 0 deletions
