Skip to content

Commit

Permalink
Merge pull request #24 from azat-ch/replxx-dtor-uncaught-exception
Browse files Browse the repository at this point in the history
Fix uncaught exception from ReplxxImpl dtor
  • Loading branch information
alexey-milovidov authored Sep 9, 2022
2 parents 3fd0e3c + 920e009 commit 5d04501
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/replxx_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,12 @@ Replxx::ReplxxImpl::ReplxxImpl( FILE*, FILE*, FILE* )
}

Replxx::ReplxxImpl::~ReplxxImpl( void ) {
disable_bracketed_paste();
try {
disable_bracketed_paste();
} catch ( std::runtime_error const& ) {
// suppress "write failed" errors (see Terminal::write8()).
// in case of i.e. broken pipe.
}
}

Replxx::ACTION_RESULT Replxx::ReplxxImpl::invoke( Replxx::ACTION action_, char32_t code ) {
Expand Down

0 comments on commit 5d04501

Please sign in to comment.