branch: elpa/bash-completion
commit 75e5de14942b137a8400c574fe68d56994d63cf3
Author: Stephane Zermatten <[email protected]>
Commit: Stephane Zermatten <[email protected]>
fix initial completion
---
bash-completion.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bash-completion.el b/bash-completion.el
index 8490821400..5e19bc327d 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -520,6 +520,9 @@ up the completion environment (COMP_LINE, COMP_POINT,
COMP_WORDS,
COMP_CWORD) and calls compgen.
The result is a list of candidates, which might be empty."
+ ;; start process now, to make sure bash-completion-alist is
+ ;; set before we run bash-completion-generate-line
+ (bash-completion-require-process)
(bash-completion-send
(concat
(bash-completion-generate-line line pos words cword)