Re: richedit: v1.0 richedit uses CR and LF for enter

2012-01-19 Thread The Edmeades
(Apologies, the building on windows was the tests not the main richedit... as I built the tests with high warnings to try to minimize the pain when I got to Linux) Ok... I agree with you, and worked out why I was doing it and user error comes in...! I was copying the line above and using &endlv10

Re: richedit: v1.0 richedit uses CR and LF for enter

2012-01-18 Thread The Edmeades
> > > This was deliberate - I did that originally and I got a compile warning > as > > one is const WCHAR * and one is const WCHAR[2] (Not sure if that error > was > > from a MSVC windows or Linux compile, but I was trying to avoid it, and a > > typecast was a bit pointless as the above is accurate

Re: richedit: v1.0 richedit uses CR and LF for enter

2012-01-18 Thread The Edmeades
2012/1/18 Juan Lang > Hi Jason, > > + ME_InsertTextFromCursor(editor, 0, &endlv10[0], 2, style); > > you want to use endlv10 instead, i.e.: > > + ME_InsertTextFromCursor(editor, 0, endlv10, 2, style); > --Juan > This was deliberate - I did that originally and I got a co