tpope/vim-repeat — pull request #4 by xaizek (2012-01-14 11:18:24+00:00)
Title: Fix adding trailing spaces when 'virtualedit' isn't empty

The problem appears when cursor is positioned after line end, thus running p command (even with empty "-register) causes Vim to add spaces from line end until cursor.

I found this issue while using vim-commentary. It's quite annoying when trailing spaces appear almost each time I comment or uncomment one line.

I'm not a VimL expert at all, so I think you could know a better fix for the issue.