From 7c1497d4cc76a71d5f6686b3ec52ff091bc0f36d Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Wed, 20 Sep 2023 12:23:08 -0700 Subject: [PATCH] Improve behavior of transient mode --- functions/fish_prompt.fish | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 84350a15..87ebac3d 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -150,9 +150,8 @@ end" if test "$tide_prompt_transient_enabled" = true function _tide_enter_transient - commandline --is-valid - # If commandline is complete (i.e pressing enter will produce a new prompt) - if test $status != 2 + # If the commandline will be executed, or is empty + if commandline --is-valid || test -z "$(commandline)" set -g _tide_transient set -g _tide_repaint commandline -f repaint