loh.tar added a comment.
Not well tested but looks so far pretty promising. The only thing what I not really like is these modulo check when to ask for user input. How about a QTimer with 200/300ms? REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D17459 To: loh.tar, #ktexteditor, #vdg Cc: kwrite-devel, kde-frameworks-devel, #ktexteditor, hase, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann