Performance fix for split window part
Making yank replace if applicable