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.
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.