Comment revision

This commit is contained in:
Henrik Lissner 2020-12-14 15:48:29 -05:00
parent 49f3bc193a
commit 9490d42cd3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 6 additions and 6 deletions

View file

@ -573,11 +573,11 @@ on."
highlight-indent-guides-mode
hl-fill-column-mode))
(defun doom-buffer-has-long-lines-p ()
;; HACK Fix #2183: `so-long-detected-long-line-p' tries to parse comment
;; syntax, but in some buffers comment state isn't initialized, leading
;; to a wrong-type-argument: stringp error.
(unless (bound-and-true-p visual-line-mode)
(let ((so-long-skip-leading-comments
;; HACK Fix #2183: `so-long-detected-long-line-p' tries to parse
;; comment syntax, but comment state may not be initialized,
;; leading to a wrong-type-argument: stringp error.
(bound-and-true-p comment-use-syntax)))
(so-long-detected-long-line-p))))
(setq so-long-predicate #'doom-buffer-has-long-lines-p))