]> code.delx.au - gnu-emacs/blobdiff - lisp/pcmpl-unix.el
Detect remote uid and gid in tramp-gvfs.el
[gnu-emacs] / lisp / pcmpl-unix.el
index ae4bd270b09afcbbc4cec5fe6960d7d6d3c99095..d4939d8d178ac7c71cc45dcace3cf1d4d4e62327 100644 (file)
@@ -1,6 +1,6 @@
 ;;; pcmpl-unix.el --- standard UNIX completions
 
-;; Copyright (C) 1999-2012 Free Software Foundation, Inc.
+;; Copyright (C) 1999-2016 Free Software Foundation, Inc.
 
 ;; Package: pcomplete
 
@@ -157,7 +157,7 @@ documentation), this function returns nil."
         (while (re-search-forward (concat "^ *" host-re) nil t)
           (add-to-list 'ssh-hosts-list (concat (match-string 1)
                                                (match-string 2)))
-          (while (and (looking-back ",")
+          (while (and (eq (char-before) ?,)
                       (re-search-forward host-re (line-end-position) t))
             (add-to-list 'ssh-hosts-list (concat (match-string 1)
                                                  (match-string 2)))))