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:
Oleh Krehel 2015-10-19 16:11:40 +02:00
parent c87949847d
commit f7ddd4b687

2
avy.el
View File

@ -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)