[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    [Bug 58354] New: Code collapsing corrupted in PHP scripts
From:       Mat Colton <mat.colton () web-xs ! de>
Date:       2003-05-11 19:51:09
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=58354     
           Summary: Code collapsing corrupted in PHP scripts
           Product: kate
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kwrite-devel@kde.org
        ReportedBy: mat.colton@web-xs.de


Version:            (using KDE KDE 3.1.1a)
Installed from:    Gentoo Packages
Compiler:          GCC 3.22 -O3 -march pentium4
OS:          Linux

Using the code collapsing in Quanta doesn't really work all to good. Since Quanta \
uses the Kate editor engine, well here's the report.  Take any PHP file. Let's assume \
this function

function set_properties($props, &$obj, $class)
{
  if (is_array ($props))
    foreach ($props as $k => $v)
      $obj->{$k} = $v;
  else
  {
    printf ($this->msg["load_props_err"], $class);
    $this->w_log("err_log", "Couldn't set properties of class '$class'");
  }
}  

Copy this into a file repeatedly so we have the function "set_properties" a couple of \
times. Now collapse the code on every function :

function set_properties($props, &$obj, $class)
{
+

Edit the free lines betweeen collapses, insert a row or two, whatever. A couple of \
                things happen (mostly reproducable):
- Click on the "+" symbol. Nothing happens. Click on it again and it works.
- Screen display gets corrupted. Only way to solve this is to close and then reopen \
the document. The safest way to reproduce this is to delete lines between collapsed \
code. Always messes the code up on all systems I checked it on. Mainly Gentoo but \
also one SuSE machine.

Checked with Kate of KDE 3.1.1a
Mail me for questions, flames, whatever. Sorry for my poor english...
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic