]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix #2
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 17 Mar 2013 20:51:01 +0000 (00:51 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 17 Mar 2013 20:51:01 +0000 (00:51 +0400)
company-clang.el

index 7613e317a12e6d009e7d416306b7c9ba52df19de..63486d0a72537824f0c3fa655f18ac6504d6f5a6 100644 (file)
@@ -180,10 +180,9 @@ Prefix files (-include ...) can be selected with
 (defsubst company-clang-version ()
   "Return the version of `company-clang-executable'."
   (with-temp-buffer
-    (switch-to-buffer (current-buffer))
     (call-process company-clang-executable nil t nil "--version")
     (goto-char (point-min))
-    (if (re-search-forward "\\clang version \\([0-9.]+\\)" nil t)
+    (if (re-search-forward "clang version \\([0-9.]+\\)" nil t)
         (match-string-no-properties 1)
       "0")))