Prevent infinite loop on Windows gVim.