Skip to content

Commit b2c3e56

Browse files
authored
[fish] Partly revert change of 0167691 (#4137)
Don't use the `-f` switch of `string split`, because it was added in fish version 3.2.0.
1 parent ca5e633 commit b2c3e56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/key-bindings.fish

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ function fzf_key_bindings
5757
function fzf-history-widget -d "Show command history"
5858
test -n "$FZF_TMUX_HEIGHT"; or set FZF_TMUX_HEIGHT 40%
5959
begin
60-
set -l FISH_MAJOR (string split -f 1 -- '.' $version)
61-
set -l FISH_MINOR (string split -f 2 -- '.' $version)
60+
set -l FISH_MAJOR (string split -- '.' $version)[1]
61+
set -l FISH_MINOR (string split -- '.' $version)[2]
6262

6363
# merge history from other sessions before searching
6464
test -z "$fish_private_mode"; and builtin history merge

0 commit comments

Comments
 (0)