Bug 357902

Summary: txt-file syntax-highlighted as "diff"-file on save
Product: [Applications] kate Reporter: H.H. <cyberbeat>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ilmari.lauhakangas
Priority: NOR    
Version First Reported In: 16.04.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: this is highlighted as diff file on save

Description H.H. 2016-01-12 21:27:28 UTC
kwrite-version: 15.08.2

I have a txt-File with some notices (and some more "-" for numerations at line beginnings).
When I open this file, edit it, and save it, it is suddenly syntax-highlighted wrong in "diff"-file-mode.

I found no option to deactivate this wrong behaviour?

Reproducible: Always
Comment 1 Buovjaga 2016-06-30 15:36:08 UTC
Could you attach an example file?
Comment 2 H.H. 2016-06-30 16:00:21 UTC
Created attachment 99771 [details]
this is highlighted as diff file on save
Comment 3 Buovjaga 2016-06-30 16:29:23 UTC
Blimey, you are right.

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.23.0
Qt 5.7
xcb wm
Comment 4 Christoph Cullmann 2016-09-05 21:12:08 UTC
Git commit 43e478ec087c26bb0c1e31a95f2ef7fa98530811 by Christoph Cullmann.
Committed on 05/09/2016 at 21:08.
Pushed by cullmann into branch 'master'.

improve mime-type detection

M  +16   -32   src/document/katedocument.cpp
M  +2    -12   src/document/katedocument.h
M  +5    -7    src/mode/katemodemanager.cpp

http://commits.kde.org/ktexteditor/43e478ec087c26bb0c1e31a95f2ef7fa98530811