Some initial work on removing buffer_t from io_data_t

This commit is contained in:
ridiculousfish
2012-03-03 23:56:35 -08:00
parent baa813c46f
commit 27f374a38b
5 changed files with 26 additions and 29 deletions

View File

@@ -1174,7 +1174,7 @@ static void run_pager( wchar_t *prefix, int is_quoted, const std::vector<complet
free( escaped_separator );
foo = wcs2str(msg.c_str());
b_append( in->param2.out_buffer, foo, strlen(foo) );
b_append( in->out_buffer, foo, strlen(foo) );
free( foo );
term_donate();
@@ -1190,10 +1190,10 @@ static void run_pager( wchar_t *prefix, int is_quoted, const std::vector<complet
io_buffer_read( out );
int nil=0;
b_append( out->param2.out_buffer, &nil, 1 );
b_append( out->out_buffer, &nil, 1 );
wchar_t *tmp;
wchar_t *str = str2wcs((char *)out->param2.out_buffer->buff);
wchar_t *str = str2wcs((char *)out->out_buffer->buff);
if( str )
{