Skip to content

Commit

Permalink
Replace null by not.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Zawada authored and Tobias Zawada committed Feb 8, 2024
1 parent 7f51cc8 commit a5e7251
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adoc-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -3794,9 +3794,9 @@ Turning on Adoc mode runs the normal hook `adoc-mode-hook'."
"Function for `flyspell-mode-predicate' property of `adoc-mode'.
Returns t if word at point should be checked, nil otherwise."
(font-lock-ensure (line-beginning-position) (line-end-position))
(null (get-text-property
(1- (point)) ;; preceding word is checked, so 1- should do no harm
'adoc-flyspell-ignore)))
(not (get-text-property
(1- (point)) ;; preceding word is checked, so 1- should do no harm
'adoc-flyspell-ignore)))

(put 'adoc-mode 'flyspell-mode-predicate 'adoc-flyspell-p)

Expand Down

0 comments on commit a5e7251

Please sign in to comment.