avy.el (avy--overlay-at): Use `avy--overlay-offset'

Fixes abo-abo/lispy#70
This commit is contained in:
Oleh Krehel 2015-05-13 23:31:34 +02:00
parent 8efed4072a
commit b0512fc8f7

7
avy.el
View File

@ -405,9 +405,10 @@ LEAF is normally ((BEG . END) . WND)."
(let ((str (propertize
(string (car (last path)))
'face 'avy-lead-face))
(pt (if (consp (car leaf))
(caar leaf)
(car leaf)))
(pt (+ (if (consp (car leaf))
(caar leaf)
(car leaf))
avy--overlay-offset))
(wnd (cdr leaf)))
(let ((ol (make-overlay pt (1+ pt)
(window-buffer wnd)))