]> code.delx.au - gnu-emacs-elpa/blobdiff - company-clang.el
Separate executable from arguments in the error output buffer
[gnu-emacs-elpa] / company-clang.el
index 52bb6e6ad073747c5ed99e56f819fd47faa665ad..6d1737a7f1ce3ae06a1d1c32f555efaf4b6f34c4 100644 (file)
@@ -145,7 +145,7 @@ or automatically through a custom `company-clang-prefix-guesser'."
 (defun company-clang--handle-error (res args)
   (goto-char (point-min))
   (let* ((buf (get-buffer-create company-clang--error-buffer-name))
-         (cmd (concat company-clang-executable (mapconcat 'identity args " ")))
+         (cmd (concat company-clang-executable " " (mapconcat 'identity args " ")))
          (pattern (format company-clang--completion-pattern ""))
          (err (if (re-search-forward pattern nil t)
                   (buffer-substring-no-properties (point-min)