[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/jinx 8eb89ba591 1/2: Fontify only what's necessary when
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/jinx 8eb89ba591 1/2: Fontify only what's necessary when correcting (#84) |
|
Date: |
Fri, 26 May 2023 14:58:42 -0400 (EDT) |
branch: externals/jinx
commit 8eb89ba5916969ca3b55a92fe00c1ca0d5cf9ea2
Author: Sebastian Wålinder <s.walinder@gmail.com>
Commit: GitHub <noreply@github.com>
Fontify only what's necessary when correcting (#84)
* jinx-correct: Only fontify lines inside window when correcting
* jinx-correct: fontify entire buffer if entire buffer should be corrected.
---
jinx.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/jinx.el b/jinx.el
index 4bf4bdcb8a..5c556107b6 100644
--- a/jinx.el
+++ b/jinx.el
@@ -852,7 +852,9 @@ If prefix argument ALL non-nil correct all misspellings."
((integerp skip) (setq idx (mod (+ idx skip) count)))
((or all deleted) (cl-incf idx))))))
(when old-point (goto-char old-point))
- (jinx--in-base-buffer #'jit-lock-refontify))))
+ (if all
+ (jinx--in-base-buffer #'jit-lock-refontify)
+ (jinx--in-base-buffer #'jit-lock-refontify (window-start)
(window-end))))))
(defun jinx-correct-select ()
"Quick selection key for corrections."