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

List:       kwrite-devel
Subject:    File not read completely when opening?
From:       Andras Mantia <amantia () freemail ! hu>
Date:       2003-02-06 14:57:36
[Download RAW message or body]

Hi,

 I experience a strange bug in some days old HEAD (I cannot test with branch) 
with the Kate part. Afteropen eg. a 2000 line long document, which is about 
200KB, the EditInterface::numLines() returns only 340, and the 
EditInterface::text() returns a string with about 35000 chars instead of 
210.000+. If I wait a little and check the numLines() again, it returns 
correctly the 2000 and the text() returns the content of the whole document. 
I use a code like:

if (doc->openUrl(url)
{
  cout << dynamic_cast<KTextEditor::EditInterface *>(doc)->numLines;
}

doc is a KTextEditor::Document*.

I've tried with two big files, and the results was similar: numLines returns 
around 540 and the text() is around 35000 chars long.

Is this a bug in the kate part?

Andras

-- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org

_______________________________________________
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