<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>332605</bug_id>
          
          <creation_ts>2014-03-25 21:45:26 +0000</creation_ts>
          <short_desc>Selected highlighting is lost after opening the file and resaving it</short_desc>
          <delta_ts>2015-10-08 07:47:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kate</product>
          <component>general</component>
          <version>3.12.95</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Albert Astals Cid">aacid</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          <cc>christoph</cc>
    
    <cc>hannesd</cc>
    
    <cc>simonbachmann</cc>
          
          <cf_commitlink>http://commits.kde.org/ktexteditor/36a130a38918202590152591f2caa693a313dbce</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1437569</commentid>
    <comment_count>0</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2014-03-25 21:45:26 +0000</bug_when>
    <thetext>I&apos;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++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1437571</commentid>
    <comment_count>1</comment_count>
      <attachid>85750</attachid>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2014-03-25 21:46:23 +0000</bug_when>
    <thetext>Created attachment 85750
The file for testing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472621</commentid>
    <comment_count>2</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2014-09-23 18:41:59 +0000</bug_when>
    <thetext>*** Bug 319412 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472623</commentid>
    <comment_count>3</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2014-09-23 18:42:26 +0000</bug_when>
    <thetext>*** Bug 314379 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548644</commentid>
    <comment_count>4</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2015-10-08 07:47:41 +0000</bug_when>
    <thetext>Git commit 36a130a38918202590152591f2caa693a313dbce by Christoph Cullmann.
Committed on 08/10/2015 at 07:46.
Pushed by cullmann into branch &apos;master&apos;.

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</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>85750</attachid>
            <date>2014-03-25 21:46:23 +0000</date>
            <delta_ts>2014-03-25 21:46:23 +0000</delta_ts>
            <desc>The file for testing</desc>
            <filename>foo.cpp</filename>
            <type>text/x-c++src</type>
            <size>82</size>
            <attacher name="Albert Astals Cid">aacid</attacher>
            
              <data encoding="base64">IAppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqKmFyZ3YpCnsKICBmb3JlYWNoKGNvbnN0IFFTdHJp
bmcgJmZvbywgZm9vTGlzdCkgewogIH0KfQ==
</data>

          </attachment>
      

    </bug>

</bugzilla>