mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
flush output of unexpand command as well
This commit is contained in:
parent
fb8f3ebf96
commit
b4752e079f
2 changed files with 2 additions and 1 deletions
|
@ -244,10 +244,10 @@ fn expand(options: Options) {
|
|||
}
|
||||
}
|
||||
|
||||
safe_unwrap!(output.flush());
|
||||
byte += nbytes; // advance the pointer
|
||||
}
|
||||
|
||||
safe_unwrap!(output.flush());
|
||||
buf.truncate(0); // clear the buffer
|
||||
}
|
||||
}
|
||||
|
|
|
@ -324,6 +324,7 @@ fn unexpand(options: Options) {
|
|||
|
||||
// write out anything remaining
|
||||
write_tabs(&mut output, ts, scol, col, pctype == Tab, init, true);
|
||||
safe_unwrap!(output.flush());
|
||||
buf.truncate(0); // clear out the buffer
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue