Resolves: fdo#78217 selected text should be copied in "Replace"

Change-Id: I548d46ec46ff07528bd1f8ed6be09463354826d8