mirror of
https://github.com/IlanCosman/tide.git
synced 2024-10-05 21:29:48 +03:00
remove redundant if
This commit is contained in:
parent
ceb2fc801b
commit
f798c2a1eb
@ -151,15 +151,13 @@ end"
|
||||
|
||||
if test "$tide_prompt_transient_enabled" = true
|
||||
function _tide_enter_transient
|
||||
# If the commandline will be executed, or is empty
|
||||
if commandline --is-valid || test -z "$(commandline)"
|
||||
# Pager open usually means selecting, not running
|
||||
# Can be untrue, but it's better than the alternative
|
||||
if not commandline --paging-mode
|
||||
set -g _tide_transient
|
||||
set -g _tide_repaint
|
||||
commandline -f repaint
|
||||
end
|
||||
# If the commandline will be executed or is empty, and the pager is not open
|
||||
# Pager open usually means selecting, not running
|
||||
# Can be untrue, but it's better than the alternative
|
||||
if commandline --is-valid || test -z "$(commandline)" && not commandline --paging-mode
|
||||
set -g _tide_transient
|
||||
set -g _tide_repaint
|
||||
commandline -f repaint
|
||||
end
|
||||
commandline -f execute
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user