This has something to do with the yanking of the region. Seems to be fixed if you use the pre-existing copy_cut and paste_internal functions.
copy_cut
paste_internal
This has something to do with the yanking of the region. Seems to be fixed if you use the pre-existing
copy_cut
andpaste_internal
functions.