easymotion / vim-easymotion

Vim motions on speed!
http://www.vim.org/scripts/script.php?script_id=3526
7.42k stars 357 forks source link

Some commands ignore the EasyMotionTarget2First/Second highlighting #364

Open mpickem opened 6 years ago

mpickem commented 6 years ago

Most commands (from my testing: easymotion-j; easymotion-k; easymotion-lineforward; easymotion-linebackward, easymotion-f, easmotion-f2) use the highlighting properly. That is, they change the highlighting according to EasyMotionTarget and EasyMotionTarget2First/Second when the input requires 1 or 2 characters, respectively.

easymotion-overwin-f / easymotion-overwin-f2 on the other hand consistently only uses EasyMotionTarget even for a 2 character input which, I guess, is a bug.

dkuettel commented 4 years ago

This is still true. It doesn't work for the overwin flavors, I see that in the code the overwin flavors call a different highlighter function and this one doesnt even get the two highlight groups as an argument, only the single one instead. It seems like highlighting overwin is implemented differently from the in-buffer one.