branch: externals/jinx commit 852788058902d93bfa95486b9601c486080f4143 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Revert "Fix bug in jinx--find-visible-pending (See #156)" This reverts commit e414c9d6be1e5623e5c1f0a521167dfe0d0ba1e6. --- jinx.el | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/jinx.el b/jinx.el index 675ca70c49..f4398973e5 100644 --- a/jinx.el +++ b/jinx.el @@ -399,14 +399,10 @@ This function is a modification hook for the overlay." (defun jinx--find-visible-pending (start end flag) "Find (in)visible and (non-)pending region between START and END. FLAG must be t or nil." - (while - ;; END can be outside the buffer if the buffer size has changed in - ;; between. Then `next-single-property-change' will return (point-max) - ;; instead of END. See gh:minad/jinx#156. - (and (< start (min end (point-max))) - (eq flag - (not (and (get-text-property start 'jinx--pending) - (not (invisible-p start)))))) + (while (and (< start end) + (eq flag + (not (and (get-text-property start 'jinx--pending) + (not (invisible-p start)))))) (setq start (next-single-char-property-change start 'jinx--pending nil (next-single-char-property-change start 'invisible nil end))))