[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/jinx 68b4685991 2/2: Minor cleanup
From: |
ELPA Syncer |
Subject: |
[elpa] externals/jinx 68b4685991 2/2: Minor cleanup |
Date: |
Fri, 26 May 2023 14:58:42 -0400 (EDT) |
branch: externals/jinx
commit 68b4685991e38eaaca645bd469fb331dd07d0ff3
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Minor cleanup
---
jinx.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/jinx.el b/jinx.el
index 5c556107b6..3ad09da79c 100644
--- a/jinx.el
+++ b/jinx.el
@@ -830,7 +830,7 @@ If prefix argument ALL non-nil correct all misspellings."
(unless jinx-mode (jinx-mode 1))
(cl-letf* (((symbol-function #'jinx--timer-handler) #'ignore) ;; Inhibit
(repeat-mode nil) ;; No repeating of jinx-next and jinx-previous
- (old-point (and (not all) (point-marker)))
+ (old-point (point-marker))
(overlays
(if all
(jinx--force-overlays (point-min) (point-max) :check t)
@@ -851,9 +851,9 @@ If prefix argument ALL non-nil correct all misspellings."
(cond
((integerp skip) (setq idx (mod (+ idx skip) count)))
((or all deleted) (cl-incf idx))))))
- (when old-point (goto-char old-point))
(if all
(jinx--in-base-buffer #'jit-lock-refontify)
+ (goto-char old-point)
(jinx--in-base-buffer #'jit-lock-refontify (window-start)
(window-end))))))
(defun jinx-correct-select ()