rpdillon / todotxt.el

A todo.txt client for Emacs
55 stars 18 forks source link

Fix todotxt-find-next-visible-char #30

Closed ComedyTomedy closed 4 years ago

ComedyTomedy commented 5 years ago

Closes #29

Changes todotxt-find-next-visible-char to skip only overlays marked 'invisible. Previous behaviour is that it doesn't work if a minor mode (like hl-line-mode) is adding overlays to the current line.

The first commit (while (invisible-p (point)) (forward-char)) is simple and readable, the 2nd replaces it with a more performant one from stackexchange. Feel free to take either.