Skip to content

Commit

Permalink
Enlarg encoding detect size to 128KB #314
Browse files Browse the repository at this point in the history
Signed-off-by: Minggang Li <minggang.li@gmail.com>
  • Loading branch information
LiMinggang committed Dec 18, 2022
1 parent 6dd97ea commit a57832c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MadEdit/MadLines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3051,7 +3051,7 @@ bool MadLines::LoadFromFile( const wxString &filename, const wxString &encoding
m_MadEdit->SetEditMode( emTextMode );
}

const int max_detecting_size = 4096;
const int max_detecting_size = 4096 * 32;
int s;

if( m_FileData->m_Size > max_detecting_size )
Expand Down Expand Up @@ -3674,7 +3674,7 @@ bool MadLines::SaveToFile( const wxString &filename, const wxString &tempdir )
}
else
{
const int max_detecting_size = 4096;
const int max_detecting_size = 4096 * 32;
int s;
wxByte *buf = nullptr;

Expand Down

0 comments on commit a57832c

Please sign in to comment.