Bug 332605 - Selected highlighting is lost after opening the file and resaving it
Summary: Selected highlighting is lost after opening the file and resaving it
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 3.12.95
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 314379 319412 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-25 21:45 UTC by Albert Astals Cid
Modified: 2015-10-08 07:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The file for testing (82 bytes, text/x-c++src)
2014-03-25 21:46 UTC, Albert Astals Cid
Details

Note You need to log in before you can comment on or make changes to this bug.
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