1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-04 19:03:38 +00:00

fix(fish): use correct input function in transient execute (#6265)

This commit is contained in:
Kid 2024-09-26 16:50:33 +08:00 committed by GitHub
parent a1e338b3dd
commit 244c2c629e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,12 +64,7 @@ function reset-transient --on-event fish_postexec
end
function transient_execute
if commandline --paging-mode
commandline -f accept-autosuggestion
return
end
commandline --is-valid
if test $status != 2
if commandline --is-valid || test -z "$(commandline)" && not commandline --paging-mode
set -g TRANSIENT 1
set -g RIGHT_TRANSIENT 1
commandline -f repaint