SourceForge.net a écrit :
Bugs item #1584113, was opened at 2006-10-24 18:33
[...]
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: BUG A 1.7.1 SCI_GETLINE

Neil answered: As documented: "The buffer is not terminated by a 0 character."

I added:
In case you were wondering, in the early days of Scintilla, it didn't have SCI_GETLINE but EM_GETLINE, to be compatible with RichEdit, making transition easy. AFAIK, Scintilla still supports this message, just redirecting it.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/editcontrols/editcontrolreference/editcontrolmessages/em_getline.asp
"Remarks
Edit controls: The copied line does not contain a terminating null character. Rich edit controls: Supported in Microsoft Rich Edit 1.0 and later. The copied line does not contain a terminating null character, unless no text was copied. If no text was copied, the message places a null character at the beginning of the buffer."

Just for the record... :-)

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to