On Fri, Oct 23, 2015 at 3:55 AM, Victor Bombi <son...@telefonica.net> wrote:

> try it without "\n" (all in a line)
>

I'm guessing that's a limitation of the number of columns Scintilla
handles, it looks like one bit less than a 2-byte short. Maybe the last
bit/values are used for some metadata. I don't see any recent Scintilla
documentation about limitations, but I wouldn't be surprised.

Here's some older limitations:
http://scintilla-interest.narkive.com/Ciq49QLW/long-lines

Regards,
    John




> ----- Original Message -----
> *From:* John Labenski <jlaben...@gmail.com>
> *To:* wxlua-users@lists.sourceforge.net
> *Sent:* Friday, October 23, 2015 5:42 AM
> *Subject:* Re: [wxlua-users] wxStyledTextCtrl:AppendText
>
>
> On Sun, Oct 18, 2015 at 2:27 PM, Victor Bombi <son...@telefonica.net>
> wrote:
>
>> Hi,
>>
>> 32*1024 - 7 is the maximum string len that is displayed in
>> wxStyledTextCtrl
>> with AppendText.
>> I have not seen anywhere information related.
>> Is this information in any place?
>> Is there any way to get a longer display length?
>>
>>
> Maybe there is an invalid utf8 char at that position that truncates it?
>
> I added this line to the end of the samples/editor.wx.lua LoadFile
> function and got all 40000 lines and even tried a larger value without a
> problem.
>
> function LoadFile(filePath, editor, file_must_exist)
> ...
>     editor:AppendText(string.rep("1234567890\n", 40000))
>     return editor
> end
>
> Regards,
>     John
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
>
> ------------------------------
>
> _______________________________________________
> wxlua-users mailing list
> wxlua-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> wxlua-users mailing list
> wxlua-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
>
------------------------------------------------------------------------------
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to