loh.tar created this revision. loh.tar added a reviewer: KTextEditor. Herald added projects: Kate, Frameworks. Herald added subscribers: kde-frameworks-devel, kwrite-devel. loh.tar requested review of this revision.
TEST PLAN This is only an example snippet to show that obviously something could be simplified. Let me know if it is desired to go further or if there is a good reason why it is so complicated. Depend of your answer I will enhance this patch or abandon. REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D17193 AFFECTED FILES src/view/kateview.cpp src/view/kateviewinternal.cpp src/view/kateviewinternal.h To: loh.tar, #ktexteditor Cc: kwrite-devel, kde-frameworks-devel, #ktexteditor, hase, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann