mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +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:
parent
c87949847d
commit
f7ddd4b687
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user