mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Merge pull request #4381 from iwahbe/spell-no-word-error
Add word existence checking for +spell/correct
This commit is contained in:
@ -65,7 +65,8 @@
|
||||
(featurep! :completion helm)))
|
||||
(call-interactively #'ispell-word)
|
||||
(cl-destructuring-bind (start . end)
|
||||
(bounds-of-thing-at-point 'word)
|
||||
(or (bounds-of-thing-at-point 'word)
|
||||
(user-error "No word at point"))
|
||||
(let ((word (thing-at-point 'word t))
|
||||
(orig-pt (point))
|
||||
poss ispell-filter)
|
||||
|
Reference in New Issue
Block a user