summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.org10
1 files changed, 6 insertions, 4 deletions
diff --git a/init.org b/init.org
index a6cfba4..745cd96 100644
--- a/init.org
+++ b/init.org
@@ -1769,10 +1769,12 @@
***** Completion
#+begin_src emacs-lisp
(defun jao-eshell-completion-capf ()
- (bash-completion-dynamic-complete-nocomint
- (save-excursion (eshell-bol) (point))
- (point)
- t))
+ (let ((c (bash-completion-dynamic-complete-nocomint
+ (save-excursion (eshell-bol) (point))
+ (point)
+ t)))
+ (when (and c (listp c))
+ (append c '(:exclusive no)))))
(defun jao-eshell--add-bash-completion ()
(setq completion-at-point-functions