lang/cc: fix #2097 wrong-type-arg listp on c-default-style

This commit is contained in:
Henrik Lissner 2019-11-21 14:21:16 -05:00
parent d873e75e63
commit da07b63f40
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -114,7 +114,8 @@ This is ignored by ccls.")
(inclass +cc-c++-lineup-inclass +)
(label . 0))))
(setf (alist-get 'other c-default-style) "doom"))
(when (listp c-default-style)
(setf (alist-get 'other c-default-style) "doom")))
(use-package! modern-cpp-font-lock