aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/sh-script.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index f089c81fe56..0040adc2c2b 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1741,7 +1741,10 @@ This adds rules for comments and assignments."
1741(defun sh--cmd-completion-table (string pred action) 1741(defun sh--cmd-completion-table (string pred action)
1742 (let ((cmds 1742 (let ((cmds
1743 (append (when (fboundp 'imenu--make-index-alist) 1743 (append (when (fboundp 'imenu--make-index-alist)
1744 (mapcar #'car (imenu--make-index-alist))) 1744 (mapcar #'car
1745 (condition-case nil
1746 (imenu--make-index-alist)
1747 (imenu-unavailable nil))))
1745 (mapcar (lambda (v) (concat v "=")) 1748 (mapcar (lambda (v) (concat v "="))
1746 (sh--vars-before-point)) 1749 (sh--vars-before-point))
1747 (locate-file-completion-table 1750 (locate-file-completion-table