diff options
author | jao <jao@gnu.org> | 2021-07-01 00:02:37 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-07-01 00:02:37 +0100 |
commit | 09376b5124abe9ab57480915e3edfc509f30b355 (patch) | |
tree | 61e91de811769ce698b0284ddc0e1726276ec14e /init.org | |
parent | 0145b49bee99da2e715e66978bd5befa9a360d3f (diff) | |
download | elibs-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.org | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |