mirror of
https://github.com/abo-abo/avy.git
synced 2026-02-04 06:42:26 +00:00
Fix jumping to the last char of a folded Org outline
avy.el (avy--regex-candidates): For the last char in the outline, (get-char-property (point) 'invisible) returns t, although it's still visible. Re #108
This commit is contained in:
2
avy.el
2
avy.el
@@ -589,7 +589,7 @@ When GROUP is non-nil, (BEG . END) should delimit that regex group."
|
|||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (car pair))
|
(goto-char (car pair))
|
||||||
(while (re-search-forward regex (cdr pair) t)
|
(while (re-search-forward regex (cdr pair) t)
|
||||||
(unless (get-char-property (point) 'invisible)
|
(unless (get-char-property (1- (point)) 'invisible)
|
||||||
(when (or (null pred)
|
(when (or (null pred)
|
||||||
(funcall pred))
|
(funcall pred))
|
||||||
(push (cons (cons (match-beginning group)
|
(push (cons (cons (match-beginning group)
|
||||||
|
|||||||
Reference in New Issue
Block a user