From kwrite-devel Thu Feb 06 14:57:36 2003 From: Andras Mantia Date: Thu, 06 Feb 2003 14:57:36 +0000 To: kwrite-devel Subject: File not read completely when opening? X-MARC-Message: https://marc.info/?l=kwrite-devel&m=104454376322103 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(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