dhaumann added a comment.
KTextEditor is nowhere designed to be thread-safe. Even if this patch solves a particular issue you have in multithreaded access, we can be sure there will be other (corner?) cases where it won't work: Think only of modifying the text at some other place at the same time. It simply does not work right now. That said: Please always access KTextEditor API only from the main thread, and none else. -1 from my side. REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D23721 To: thomassc, #ktexteditor Cc: dhaumann, cullmann, kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, sars