syl20bnr / evil-escape

Customizable key sequence to escape from insert state and everything else in Emacs.
GNU General Public License v3.0
225 stars 42 forks source link

Fix flickering when using 'global-hl-line-mode' #75

Closed galaunay closed 7 years ago

galaunay commented 7 years ago

This fix remove the display flickering when using global-hl-line-mode and evil-escape-mode (see #65).

evil-escape-pre-command-hook is now added at the beginning of pre-command-hook and so, called before global-hl-line-unhighlight.

This change in pre-command-hook order does not seem to be harmful elsewhere (evil-escape still works fine for me).

syl20bnr commented 7 years ago

Thank you ! Great fix 👍 Will be in 3.14 Cherry-picked into develop branch, you can safely delete your branch.