Bug 51004 - Kate Highlight and FISH
Summary: Kate Highlight and FISH
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 60933 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-21 13:12 UTC by Eduardo Maestri Righes
Modified: 2003-12-14 03:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Maestri Righes 2002-11-21 13:12:05 UTC
Version:            (using KDE KDE 3.0.99)
Installed from:    Slackware Packages
Compiler:          gcc 2.95.3 (main) and gcc 3.2 
OS:          Linux

When kate reopens a file through ssh (FISH), the highlight isn't restored. I only tested this using C++ sources.

Choosing other highlight and returning to C++ highlight restore the  colors.
Comment 1 Hamish Rodda 2003-01-20 07:17:54 UTC
I have been noticing this too.  It seems to happen with all IOSlaves.  
Couldn't track it down though... any other developers have an idea? 
Comment 2 Christoph Cullmann 2003-07-25 23:55:36 UTC
*** Bug 60933 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Cullmann 2003-08-10 00:29:45 UTC
:() works in cvs head, will be there for kde 3.2 
Comment 4 Hamish Rodda 2003-12-08 10:32:58 UTC
Subject: kdelibs/kate/part

CVS commit by rodda: 

Fix syntax highlighting restoration for files loaded as part of a session.
Christoph, this bug wasn't fixed in cvs head... but it is now :)

CCMAIL:51004@bugs.kde.org
CCMAIL:60933@bugs.kde.org


  M +4 -0      katedocument.cpp   1.660


--- kdelibs/kate/part/katedocument.cpp  #1.659:1.660
@@ -2434,4 +2434,8 @@ bool KateDocument::openFile(KIO::Job * j
       if (hl >= 0)
         internalSetHlMode(hl);
+    
+    } else {
+      // The buffer's highlighting gets nuked by KateBuffer::clear()
+      buffer->setHighlight(m_highlight);
     }
 


Comment 5 raditzman 2003-12-14 03:55:13 UTC
Syntax highlighting for any auto-started file located in an ftp also fails with kate 2.1 . I guess this is fixed aswell, right?

Good work guys, i was gonna post this bugreport until I saw this one.

Daniel