mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Correctly style io_chain_t::print
This commit is contained in:
parent
0573e95b03
commit
1e15aa4c4a
1 changed files with 2 additions and 5 deletions
|
@ -231,12 +231,9 @@ void io_chain_t::print() const {
|
||||||
std::fwprintf(stderr, L"Chain %p (%ld items):\n", this, (long)this->size());
|
std::fwprintf(stderr, L"Chain %p (%ld items):\n", this, (long)this->size());
|
||||||
for (size_t i = 0; i < this->size(); i++) {
|
for (size_t i = 0; i < this->size(); i++) {
|
||||||
const auto &io = this->at(i);
|
const auto &io = this->at(i);
|
||||||
if (io.get() == nullptr)
|
if (io.get() == nullptr) {
|
||||||
{
|
|
||||||
std::fwprintf(stderr, L"\t(null)\n");
|
std::fwprintf(stderr, L"\t(null)\n");
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
std::fwprintf(stderr, L"\t%lu: fd:%d, ", (unsigned long)i, io->fd);
|
std::fwprintf(stderr, L"\t%lu: fd:%d, ", (unsigned long)i, io->fd);
|
||||||
io->print();
|
io->print();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue