nibags added a comment.
The function `setDontChangeHlOnSave()` uses the `m_hlSetByUser` variable to avoid resetting the syntax highlighting, which I removed in `updateFileType()`. I could use another binary for this. INLINE COMMENTS > katedocument.cpp:1893 > > void KTextEditor::DocumentPrivate::setDontChangeHlOnSave() > { Apparently, the problem is here. "m_hlSetByUser" is used to avoid resetting the hl. I should create another binary varible for this. REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D20959 To: nibags, #ktexteditor, #kate, cullmann Cc: cullmann, kwrite-devel, kde-frameworks-devel, domson, michaelh, ngraham, bruns, demsking, sars, dhaumann