mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 23:22:46 +08:00
Fix incorrect port of write_to_fd
This commit is contained in:
parent
c17fc65321
commit
a3311c9b09
|
@ -457,6 +457,7 @@ pub fn wwrite_to_fd(input: &wstr, fd: RawFd) -> Option<usize> {
|
|||
unsafe {
|
||||
std::ptr::copy(&buff[0], &mut accum[accumlen], buff.len());
|
||||
}
|
||||
accumlen += buff.len();
|
||||
true
|
||||
} else {
|
||||
// Too much data to even fit, just write it immediately.
|
||||
|
|
Loading…
Reference in New Issue
Block a user