copy and paste problem

The copy and paste function has suddenly gone flakey on me. When it pastes, it pastes extra copies of some items on the line below, in red. It has happened when using bluetooth keyboard and when I am using codea keypad. I could get used to it I guess but it messes up the compiler. Anyone else having this problem?