mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 11:01:14 -03:00
Revert "Revert shared_ptr<io_data_t> changes until kinks are ironed out"
This reverts commit 77f1b1f0fe.
This commit is contained in:
committed by
ridiculousfish
parent
ff49792f44
commit
b66233de78
@@ -1064,7 +1064,7 @@ static void run_pager(const wcstring &prefix, int is_quoted, const std::vector<c
|
||||
is_quoted?L"-q":L"",
|
||||
prefix_esc.c_str());
|
||||
|
||||
io_data_t *in = io_buffer_create(true);
|
||||
shared_ptr<io_data_t> in(io_buffer_create(true));
|
||||
in->fd = 3;
|
||||
|
||||
escaped_separator = escape(COMPLETE_SEP_STR, 1);
|
||||
@@ -1133,7 +1133,7 @@ static void run_pager(const wcstring &prefix, int is_quoted, const std::vector<c
|
||||
|
||||
term_donate();
|
||||
|
||||
io_data_t *out = io_buffer_create(false);
|
||||
shared_ptr<io_data_t> out(io_buffer_create(false));
|
||||
out->fd = 4;
|
||||
|
||||
parser_t &parser = parser_t::principal_parser();
|
||||
@@ -1143,7 +1143,7 @@ static void run_pager(const wcstring &prefix, int is_quoted, const std::vector<c
|
||||
parser.eval(cmd, io_chain, TOP);
|
||||
term_steal();
|
||||
|
||||
io_buffer_read(out);
|
||||
io_buffer_read(out.get());
|
||||
|
||||
int nil=0;
|
||||
out->out_buffer_append((char *)&nil, 1);
|
||||
|
||||
Reference in New Issue
Block a user