remove redundant if

This commit is contained in:
Ilan Cosman 2024-01-04 19:49:34 -08:00
parent ceb2fc801b
commit f798c2a1eb

View File

@ -151,15 +151,13 @@ end"
if test "$tide_prompt_transient_enabled" = true if test "$tide_prompt_transient_enabled" = true
function _tide_enter_transient function _tide_enter_transient
# If the commandline will be executed, or is empty # If the commandline will be executed or is empty, and the pager is not open
if commandline --is-valid || test -z "$(commandline)" # Pager open usually means selecting, not running
# Pager open usually means selecting, not running # Can be untrue, but it's better than the alternative
# Can be untrue, but it's better than the alternative if commandline --is-valid || test -z "$(commandline)" && not commandline --paging-mode
if not commandline --paging-mode set -g _tide_transient
set -g _tide_transient set -g _tide_repaint
set -g _tide_repaint commandline -f repaint
commandline -f repaint
end
end end
commandline -f execute commandline -f execute
end end