Skip to content

Commit 4a821c7

Browse files
committed
Merge branch 'aik099-59'
2 parents 5c57e73 + b560fc8 commit 4a821c7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/HookFactory.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ function %%function_name%% {
4444
RESULT="$(%%completion_command%% </dev/null)";
4545
STATUS=$?;
4646
47-
local cur;
47+
local cur mail_check_backup;
48+
49+
mail_check_backup=$MAILCHECK
50+
MAILCHECK=-1
51+
4852
_get_comp_words_by_ref -n : cur;
4953
5054
# Check if shell provided path completion is requested
@@ -62,6 +66,8 @@ function %%function_name%% {
6266
COMPREPLY=(`compgen -W "$RESULT" -- $cur`);
6367
6468
__ltrim_colon_completions "$cur";
69+
70+
MAILCHECK=mail_check_backup
6571
};
6672
6773
if [ "$(type -t _get_comp_words_by_ref)" == "function" ]; then

0 commit comments

Comments
 (0)