]> code.delx.au - gnu-emacs-elpa/commitdiff
Don't complete // as file name.
authorNikolaj Schumacher <git@nschum.de>
Wed, 6 May 2009 15:30:44 +0000 (17:30 +0200)
committerNikolaj Schumacher <git@nschum.de>
Thu, 7 May 2009 13:13:35 +0000 (15:13 +0200)
company-files.el

index bb58d1ce969aa1c71d33a1cb15a2d7cbc7aee603..069809fdad75131243b2f4dbf7899c4c519e0827 100644 (file)
@@ -41,6 +41,7 @@
            (when (setq file (company-grab-line regexp 1))
              (return file)))
          (setq dir (file-name-directory file))
+         (not (string-match "//" dir))
          (file-exists-p dir)
          (file-name-all-completions (file-name-nondirectory file) dir)
          file)))