Bug 332605

Summary: Selected highlighting is lost after opening the file and resaving it
Product: [Applications] kate Reporter: Albert Astals Cid <aacid>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: cullmann, hannesd, simonbachmann
Priority: NOR    
Version: 3.12.95   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The file for testing

Description Albert Astals Cid 2014-03-25 21:45:26 UTC
I'll attach a file as example.

What i do:
 * Open the file
 * Highlighting is set by default to C++
 * Go to menu and select C++/Qt4 higlighting
 * See that highlighting is nicer
 * Close the file
 * Open the file
 * See that highlighting is still nicer
 * Go to menu and verify C++/Qt4 higlighting is still selected
 * Add a space to the first line (or do any other edit)
 * Save the file
 * See that highlighting is not nice anymore
 * See that Highlight is back to to C++
Comment 1 Albert Astals Cid 2014-03-25 21:46:23 UTC
Created attachment 85750 [details]
The file for testing
Comment 2 Christoph Cullmann 2014-09-23 18:41:59 UTC
*** Bug 319412 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Cullmann 2014-09-23 18:42:26 UTC
*** Bug 314379 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Cullmann 2015-10-08 07:47:41 UTC
Git commit 36a130a38918202590152591f2caa693a313dbce by Christoph Cullmann.
Committed on 08/10/2015 at 07:46.
Pushed by cullmann into branch 'master'.

CHANGELOG: remember if highlighting was set by user over sessions to not loose it on save after restore

M  +7    -1    src/document/katedocument.cpp

http://commits.kde.org/ktexteditor/36a130a38918202590152591f2caa693a313dbce