Ensure the end of line char is '\n' in wxStyledTextCtrl when using SCINTILLA_TRICKS.
This commit is contained in:
parent
91363dd93c
commit
33454ef8d2
|
@ -41,6 +41,9 @@ SCINTILLA_TRICKS::SCINTILLA_TRICKS( wxStyledTextCtrl* aScintilla, const wxString
|
||||||
m_singleLine( aSingleLine ),
|
m_singleLine( aSingleLine ),
|
||||||
m_returnCallback( aReturnCallback )
|
m_returnCallback( aReturnCallback )
|
||||||
{
|
{
|
||||||
|
// Always use LF as eol char, regardless the platform
|
||||||
|
m_te->SetEOLMode( wxSTC_EOL_LF );
|
||||||
|
|
||||||
// A hack which causes Scintilla to auto-size the text editor canvas
|
// A hack which causes Scintilla to auto-size the text editor canvas
|
||||||
// See: https://github.com/jacobslusser/ScintillaNET/issues/216
|
// See: https://github.com/jacobslusser/ScintillaNET/issues/216
|
||||||
m_te->SetScrollWidth( 1 );
|
m_te->SetScrollWidth( 1 );
|
||||||
|
|
Loading…
Reference in New Issue