cullmann accepted this revision. cullmann added a comment. This revision is now accepted and ready to land.
In any case, I think it is OK to make this function save for invalid cursors. REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D19407 To: loh.tar, #ktexteditor, cullmann Cc: cullmann, dhaumann, kwrite-devel, kde-frameworks-devel, #ktexteditor, domson, michaelh, ngraham, bruns, demsking, sars