I have the following function:
function _X() normal! gvy vs tmp normal!p ALEFix black normal! ggVG normal! y <------- endfunc
y does not work. That is, when it runs within the function whatever it copies is not correct (as if the function didn't finish the job yet). However, as soon as the function exits I can press
y and it will copy the selection, but not within the function. What's going on here, and how can I fix that behavior?