From 244c2c629e1f358bf849923531d5cf0d69c2db2d Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Thu, 26 Sep 2024 16:50:33 +0800 Subject: [PATCH] fix(fish): use correct input function in transient execute (#6265) --- src/init/starship.fish | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/init/starship.fish b/src/init/starship.fish index 85c665b4..ac3930df 100644 --- a/src/init/starship.fish +++ b/src/init/starship.fish @@ -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