summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-07-01 00:02:37 +0100
committerjao <jao@gnu.org>2021-07-01 00:02:37 +0100
commit09376b5124abe9ab57480915e3edfc509f30b355 (patch)
tree61e91de811769ce698b0284ddc0e1726276ec14e /init.org
parent0145b49bee99da2e715e66978bd5befa9a360d3f (diff)
downloadelibs-09376b5124abe9ab57480915e3edfc509f30b355.tar.gz
elibs-09376b5124abe9ab57480915e3edfc509f30b355.tar.bz2
completion in eshell: go on when bash bails on it
Diffstat (limited to 'init.org')
-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