Skip to content

Commit b7d68f8

Browse files
committed
feat(job-queue): always call from submodule
1 parent 63845a0 commit b7d68f8

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

zsh-abbr.zsh

+6-8
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,8 @@ abbr() {
10101010
shift $number_opts
10111011

10121012
if ! (( ABBR_LOADING_USER_ABBREVIATIONS )) && [[ $scope != 'session' ]]; then
1013-
job_id=$(job-queue generate-id)
1014-
job-queue push zsh-abbr $job_id $action
1013+
job_id=$(${ABBR_SOURCE_PATH}/zsh-job-queue/zsh-job-queue.zsh generate-id)
1014+
${ABBR_SOURCE_PATH}/zsh-job-queue/zsh-job-queue.zsh push zsh-abbr $job_id $action
10151015

10161016
if (( ABBR_AUTOLOAD )); then
10171017
_abbr_load_user_abbreviations
@@ -1030,7 +1030,7 @@ abbr() {
10301030
fi
10311031

10321032
if ! (( ABBR_LOADING_USER_ABBREVIATIONS )); then
1033-
job-queue pop zsh-abbr $job_id
1033+
${ABBR_SOURCE_PATH}/zsh-job-queue/zsh-job-queue.zsh pop zsh-abbr $job_id
10341034
fi
10351035

10361036
if ! (( quiet )); then
@@ -1694,8 +1694,6 @@ _abbr_init() {
16941694
'builtin' 'print' abbr: There was a problem finishing installing dependencies
16951695
return 1
16961696
fi
1697-
1698-
'builtin' 'source' ${ABBR_SOURCE_PATH}/zsh-job-queue/zsh-job-queue.zsh
16991697
}
17001698

17011699
_abbr_init:add_widgets() {
@@ -1812,8 +1810,8 @@ _abbr_init() {
18121810

18131811
_abbr_init:dependencies || return
18141812

1815-
job_id=$(job-queue generate-id)
1816-
job-queue push zsh-abbr $job_id initialization
1813+
job_id=$(${ABBR_SOURCE_PATH}/zsh-job-queue/zsh-job-queue.zsh generate-id)
1814+
${ABBR_SOURCE_PATH}/zsh-job-queue/zsh-job-queue.zsh push zsh-abbr $job_id initialization
18171815

18181816
(( ABBR_LOG_AVAILABLE_ABBREVIATION && ABBR_GET_AVAILABLE_ABBREVIATION )) && {
18191817
'builtin' 'autoload' -Uz add-zsh-hook
@@ -1825,7 +1823,7 @@ _abbr_init() {
18251823
_abbr_init:deprecations
18261824
(( ABBR_DEFAULT_BINDINGS )) && _abbr_init:bind_widgets
18271825

1828-
job-queue pop zsh-abbr $job_id
1826+
${ABBR_SOURCE_PATH}/zsh-job-queue/zsh-job-queue.zsh pop zsh-abbr $job_id
18291827
unset ABBR_INITIALIZING
18301828
} always {
18311829
unfunction -m _abbr_init:add_widgets

0 commit comments

Comments
 (0)