This was patched in vim and neovim. https://github.com/vim/vim/commit/26852128a2b713ef49341a0c18daba928444e7eb