diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-12 22:18:10 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-13 22:30:50 +0900 |
| commit | aa10dccf900b5f0bdad475663f5dfe70757ea29d (patch) | |
| tree | 08fe0b2e6273792362de6ce897f5b5eef4cb993d /shell/key-bindings.bash | |
| parent | f4fd53211a9e3964818c2069aeff5464a679079f (diff) | |
| download | fzf-aa10dccf900b5f0bdad475663f5dfe70757ea29d.tar.gz | |
Support colon delimiter in ANSI escape sequences
# Both should work
printf "\e[38;5;208mOption 1\e[m\nOption 2" | fzf --ansi
printf "\e[38:5:208mOption 1\e[m\nOption 2" | fzf --ansi
This change makes ANSI parsing slightly slower.
cpu: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Before:
BenchmarkNextAnsiEscapeSequence-12 992.22 MB/s
BenchmarkExtractColor-12 174.35 MB/s
After:
BenchmarkNextAnsiEscapeSequence-12 925.05 MB/s
BenchmarkExtractColor-12 163.33 MB/s
Fix #2913
Diffstat (limited to 'shell/key-bindings.bash')
0 files changed, 0 insertions, 0 deletions
