Fix for UTF-8 roundtrip verification bug.
The problem was that the round-trip verification code copies the current state, which may contain intermediate Parser state for multibyte characters and ANSI escape sequences. It then applies diffs to that copy, which may appear as badly formed input. Also removes some dead, never-used code.
This commit is contained in:
@@ -174,8 +174,8 @@ int Complete::wait_time( uint64_t now ) const
|
||||
bool Complete::compare( const Complete &other ) const
|
||||
{
|
||||
bool ret = false;
|
||||
for ( int x = 0; x < terminal.get_fb().ds.get_width(); x++ ) {
|
||||
for ( int y = 0; y < terminal.get_fb().ds.get_height(); y++ ) {
|
||||
for ( int y = 0; y < terminal.get_fb().ds.get_height(); y++ ) {
|
||||
for ( int x = 0; x < terminal.get_fb().ds.get_width(); x++ ) {
|
||||
if ( terminal.get_fb().get_cell( y, x )->compare( *other.terminal.get_fb().get_cell( y, x ) ) ) {
|
||||
fprintf( stderr, "Cell (%d, %d) differs.\n", y, x );
|
||||
ret = true;
|
||||
|
||||
Reference in New Issue
Block a user