File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -618,11 +618,9 @@ and jump to the corresponding one."
618
618
limit
619
619
ov)
620
620
(when (evil--flyspell-overlay-at pos forwardp)
621
- (if (/= pos (point-min))
622
- (setq pos (save-excursion (goto-char pos)
623
- (forward-word (if forwardp 1 -1))
624
- (point)))
625
- (setq pos (point-max))))
621
+ (setq pos (save-excursion (goto-char pos)
622
+ (forward-word (if forwardp 1 -1))
623
+ (point))))
626
624
(setq limit (if forwardp (point-max) (point-min))
627
625
ov (evil--flyspell-overlay-after pos limit forwardp))
628
626
(if ov
Original file line number Diff line number Diff line change @@ -5850,7 +5850,17 @@ Line 2"))
5850
5850
("[s")
5851
5851
"I cannt tpye for [l]yfe"
5852
5852
("[s")
5853
- "I cannt [t]pye for lyfe"))
5853
+ "I cannt [t]pye for lyfe")
5854
+ (evil-test-buffer
5855
+ "[o]en otw thre"
5856
+ (flyspell-mode)
5857
+ (flyspell-buffer)
5858
+ ("]s")
5859
+ "oen [o]tw thre"
5860
+ ("]s")
5861
+ "oen otw [t]hre"
5862
+ ("]s")
5863
+ "[o]en otw thre"))
5854
5864
(ert-info ("With count")
5855
5865
(evil-test-buffer
5856
5866
"[I] cannt tpye for lyfe"
You can’t perform that action at this time.
0 commit comments