Summary: | Syntax highlighting reverts default "guess" when editing remote files when saving | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Cade Robinson <cade.robinson> |
Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christoph, nate, nibgonz |
Priority: | NOR | ||
Version: | 19.04.1 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/ktexteditor/b2064042daa143ae60d5728d46777511aee74a02 | Version Fixed In: | |
Sentry Crash Report: |
Description
Cade Robinson
2019-05-20 13:44:07 UTC
Hmm, perhaps related to the change in https://phabricator.kde.org/D20959 Proposed fix: https://phabricator.kde.org/D21331 Git commit b2064042daa143ae60d5728d46777511aee74a02 by Nibaldo González. Committed on 22/05/2019 at 11:25. Pushed by ngonzalez into branch 'master'. Fix: don't reset Highlight when saving some files Summary: 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 M +4 -2 src/document/katedocument.cpp https://commits.kde.org/ktexteditor/b2064042daa143ae60d5728d46777511aee74a02 Seeing the comment on the "Mode" menu vs "Highlighting" menu as a workaround instead of choosing "Highlighting" I use "Mode" and this works fine. What is the difference between the two? If they do the same thing essentially maybe remove one or the other? |