D20959: Allow to change the Mode, after changing the Highlighting

Nibaldo González noreply at phabricator.kde.org
Tue May 21 22:07:15 BST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190521/fe3d39a8/attachment.html>


More information about the Kde-frameworks-devel mailing list