branch: elpa/spell-fu
commit 30a3eb0b455ae4564fe042b9808497cfd010d945
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>

    Fix char-after at point-max returning nil
---
 spell-fu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spell-fu.el b/spell-fu.el
index bf677988a64..705cf348566 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -1559,7 +1559,7 @@ Return t if the file was updated."
               (when (looking-at-p "personal_ws-")
                 (delete-region (pos-bol) (1+ (pos-eol))))
               (goto-char (point-max))
-              (unless (eq ?\n (char-after))
+              (unless (eq ?\n (char-before))
                 (insert "\n")))
 
             (setq word-list (spell-fu--buffer-as-line-list (current-buffer) 
word-list)))

Reply via email to