branch: elpa/symbol-overlay commit de215fff392c916ffab01950fcb6daf6fd18be4f Merge: a505a10bb1 a892fdbc47 Author: Steve Purcell <st...@sanityinc.com> Commit: GitHub <nore...@github.com>
Merge pull request #108 from roife/wolray Fix incorrect behavior of symbol-overlay-switch-backward --- symbol-overlay.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symbol-overlay.el b/symbol-overlay.el index 453128a25f..e1be4789dd 100644 --- a/symbol-overlay.el +++ b/symbol-overlay.el @@ -255,7 +255,7 @@ If SYMBOL is non-nil, get the overlays that belong to it. DIR is an integer. If EXCLUDE is non-nil, get all overlays excluding those belong to SYMBOL." (let ((overlays (cond ((= dir 0) (overlays-in (point-min) (point-max))) - ((< dir 0) (overlays-in (point-min) (point))) + ((< dir 0) (nreverse (overlays-in (point-min) (point)))) ((> dir 0) (overlays-in (if (looking-at-p "\\_>") (1- (point)) (point)) (point-max))))))