]> code.delx.au - gnu-emacs/blobdiff - lisp/comint.el
Make pcomplete less eager to add an extra space.
[gnu-emacs] / lisp / comint.el
index 638ef73d53de6797fe52c07e7d6509cc296d15e4..994d81a375aed28a556fecd4ed9ce90c28c46ce1 100644 (file)
@@ -3161,8 +3161,8 @@ See `completion-table-with-quoting' and `comint-unquote-function'.")
           (complete-with-action action table string pred))))
      (unless (zerop (length filesuffix))
        (list :exit-function
-             (lambda (_s finished)
-               (when (memq finished '(sole finished))
+             (lambda (_s status)
+               (when (eq status 'finished)
                  (if (looking-at (regexp-quote filesuffix))
                      (goto-char (match-end 0))
                    (insert filesuffix)))))))))