Do not source history-substring-search if already loaded (#1830)

This commit is contained in:
Amyn 2020-05-02 19:21:27 +01:00 committed by GitHub
parent 530ea10126
commit 13c61bae30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@
pmodload 'editor'
# Source module files.
source "${0:h}/external/zsh-history-substring-search.zsh" || return 1
if (( ! $+functions[history-substring-search-up] )); then
source "${0:h}/external/zsh-history-substring-search.zsh" || return 1
fi
#
# Search