Use s.chop(n) instead of s = s.left(s.length() - n)
Summary:
GIT_SILENT
Reviewers: Kate, cullmann
Reviewed By: Kate, cullmann
Subscribers: cullmann, kwrite-devel, kde-frameworks-devel
Tags: Kate, Frameworks
Differential Revision: https://phabricator.kde.org/D23633