Refactor narf|nlinum-hl-line

This commit is contained in:
Henrik Lissner 2016-05-12 02:38:09 -04:00
parent ef4b8c5b65
commit 8a775781dc

View file

@ -47,7 +47,7 @@
(when (>= peol max)
(setq peol max))
(jit-lock-fontify-now pbol peol)
(let ((ov (-first (lambda (item) (overlay-get item 'nlinum)) (overlays-in pbol peol))))
(let ((ov (--first (overlay-get it 'nlinum) (overlays-in pbol peol))))
(when ov
(narf|nlinum-unhl-line)
(let ((str (nth 1 (get-text-property 0 'display (overlay-get ov 'before-string)))))