Merge branch 'feat/avoid_copying' into 'master'
Avoid copying if it's possible
See merge request kde/kate!9