mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Fix parsing of source files that do not end in newline.
This commit is contained in:
parent
651cfd5c21
commit
0c48956410
@ -488,6 +488,7 @@ void SourceView::ParseSource( const char* fileName, const Worker& worker, const
|
||||
auto end = txt;
|
||||
while( *end != '\n' && *end != '\r' && end - m_data < sz ) end++;
|
||||
m_lines.emplace_back( Line { txt, end, Tokenize( txt, end ) } );
|
||||
if( end - m_data == sz ) break;
|
||||
if( *end == '\n' )
|
||||
{
|
||||
end++;
|
||||
|
Loading…
Reference in New Issue
Block a user