completion/ivy: fix stringp error from blank buffer-file-name
This commit is contained in:
parent
3a0f27935e
commit
565c4fa0f4
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@
|
|||
(ivy-rich-switch-buffer-pad str ivy-rich-switch-buffer-name-max-length)
|
||||
'face (cond ((string-match-p "^ *\\*" str)
|
||||
'font-lock-comment-face)
|
||||
((not (file-in-directory-p buffer-file-truename doom--project-root))
|
||||
((and buffer-file-truename
|
||||
(not (file-in-directory-p buffer-file-truename doom--project-root)))
|
||||
'font-lock-doc-face)
|
||||
(t nil))))
|
||||
(advice-add 'ivy-rich-switch-buffer-buffer-name :override #'+ivy*rich-switch-buffer-buffer-name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue