mirror of
https://github.com/IlanCosman/tide.git
synced 2025-01-03 10:02:22 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user