mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-02 22:18:35 +08:00
fish: Make CTRL-R work on empty/invalid $fish_color{normal,comment} (#4831)
Fix #4767 Fix #4830
This commit is contained in:
@@ -152,7 +152,7 @@ function fzf_key_bindings
|
|||||||
# Enable syntax highlighting colors on fish v4.3.3 and newer
|
# Enable syntax highlighting colors on fish v4.3.3 and newer
|
||||||
if string match -qr -- '^\\d\\d+|^4\\.[4-9]|^4\\.3\\.[3-9]' $version
|
if string match -qr -- '^\\d\\d+|^4\\.[4-9]|^4\\.3\\.[3-9]' $version
|
||||||
set -a -- FZF_DEFAULT_OPTS '--ansi'
|
set -a -- FZF_DEFAULT_OPTS '--ansi'
|
||||||
set -a -- FZF_DEFAULT_COMMAND '--color=always --show-time=(set_color $fish_color_comment)"%F %a %T%t%s%t"(set_color $fish_color_normal)'
|
set -a -- FZF_DEFAULT_COMMAND '--color=always --show-time=(set_color $fish_color_comment 2>/dev/null; or set_color normal)"%F %a %T%t%s%t"(set_color normal)'
|
||||||
else
|
else
|
||||||
set -a -- FZF_DEFAULT_COMMAND '--show-time="%F %a %T%t%s%t"'
|
set -a -- FZF_DEFAULT_COMMAND '--show-time="%F %a %T%t%s%t"'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user