mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-01 19:16:30 +03:00
Fix multi-line search in buffer bug.
Added: display new line character in selection. Fixed a crash when trying to write into a broken pipe.
This commit is contained in:
@@ -38,7 +38,16 @@ void BusProcess::startAsyncRead( ReadFn readFn ) {
|
||||
}
|
||||
|
||||
size_t BusProcess::write( const char* buffer, const size_t& size ) {
|
||||
return mProcess.write( buffer, size );
|
||||
if ( mState == State::Running ) {
|
||||
if ( !mProcess.isAlive() ) {
|
||||
setState( State::Closed );
|
||||
return 0;
|
||||
}
|
||||
|
||||
return mProcess.write( buffer, size );
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace ecode
|
||||
|
||||
Reference in New Issue
Block a user