diff options
| author | Tomas Janousek <tomi@nomi.cz> | 2020-11-11 11:13:41 +0000 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-11-13 02:16:54 +0900 |
| commit | 218b3c8274193c7ea128d164c7924fcb46c2db65 (patch) | |
| tree | 26218931160dda177e46116c14ea7c0bf8e2e9c5 /plugin | |
| parent | db9cb2ddda5a9dbe33af64358b53d76211dd4282 (diff) | |
| download | fzf-218b3c8274193c7ea128d164c7924fcb46c2db65.tar.gz | |
[bash-completion] Move -F/_fzf filter to __fzf_orig_completion_filter
This prevents mistakes like the one fixed by the previous commit, and
also speeds bash startup a tiny bit:
before:
$ HISTFILE=/tmp/bashhist hyperfine 'bash --rcfile shell/completion.bash -i'
Benchmark #1: bash --rcfile shell/completion.bash -i
Time (mean ± σ): 22.4 ms ± 0.6 ms [User: 28.7 ms, System: 7.8 ms]
Range (min … max): 21.7 ms … 25.2 ms 123 runs
after:
$ HISTFILE=/tmp/bashhist hyperfine 'bash --rcfile shell/completion.bash -i'
Benchmark #1: bash --rcfile shell/completion.bash -i
Time (mean ± σ): 21.2 ms ± 0.3 ms [User: 24.9 ms, System: 6.4 ms]
Range (min … max): 20.7 ms … 23.3 ms 132 runs
Diffstat (limited to 'plugin')
0 files changed, 0 insertions, 0 deletions
