Fix: don't reset Highlight when saving some files

Authored by nibags on May 22 2019, 8:57 AM.

Description

Fix: don't reset Highlight when saving some files

Summary:
BUG: 407763

Fix the regression of patch D20959.

In sftp:// or fish:// files, the current syntax highlighting isn't stored in $HOME/.config/katemetainfos.
Therefore, when saving a file, the highlighting is reset.
This only happens when changing the hl from the "Highlighting" menu, not from the "Mode" menu.

Basically, this returns to the state before the patch D20959, but now the highlight will always change if user is true.

Reviewers: KTextEditor, cullmann

Reviewed By: KTextEditor, cullmann

Subscribers: kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D21331

Details

Committed
nibagsMay 22 2019, 11:25 AM
Reviewer
KTextEditor
Differential Revision
D21331: Fix: don't reset Highlight when saving some files
Parents
R39:e29a47ea7269: Auto indentation: Use std::vector instead of QList
Branches
Unknown
Tags
Unknown