mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
Minor startup speed improvement
This commit is contained in:
parent
c7d9679b28
commit
e98a412bad
@ -1,3 +1,3 @@
|
|||||||
function _tide_find_and_remove -a name list --no-scope-shadowing
|
function _tide_find_and_remove -a name list --no-scope-shadowing
|
||||||
set -e "$list"[(contains --index $name $$list)] 2>/dev/null # Ignore error if $list doesn't contain $name
|
set -l index (contains --index $name $$list) && set -e "$list"[$index]
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user