Skip to content

Commit ba304fe

Browse files
committed
[master] bug: irony--working-directory could be nil
1 parent 41c179a commit ba304fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

company-irony-c-headers.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@
7676

7777
(defun company-irony-c-headers--working-dir ()
7878
"Get working directory."
79-
(or (file-name-as-directory irony--working-directory)
80-
default-directory))
79+
(if irony--working-directory
80+
(file-name-as-directory irony--working-directory)
81+
default-directory))
8182

8283
(defvar-local company-irony-c-headers--compiler-output nil
8384
"Compiler generated output for search paths.")

0 commit comments

Comments
 (0)