On Fri, 8 Apr 2022 11:56:36 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

>>> But should /r/r/n cause 2 line feeds? /r should be just carriage return to 
>>> cause caret to move from last column to first, why it is inserting new line?
>> 
>> \r is converted to \n in setText method....... To be specific, in 
>> `read(Reader in, Document doc, int pos)` method of DefaultEditorKit 
>> class......
>
> So, that means presently it is writing /n/r/n not /r/r/n, right?

Initially it is /r/r/n from `getText()` of pane0, later it is /n/r/n from 
`setText()`....

-------------

PR: https://git.openjdk.java.net/jdk/pull/8122

Reply via email to