Make it possible to use backslash to stay in multiline mode even when not at the end of the command

darcs-hash:20061007210631-ac50b-cc8513802c247d92c8d4d5f7bcf7a146aab67a1e.gz
This commit is contained in:
axel 2006-10-08 07:06:31 +10:00
parent 1e739166b3
commit e51322ac81

View File

@ -630,7 +630,12 @@ void repaint()
parser_test( data->buff, data->indent, 0, 0 );
s_write( &data->screen, (wchar_t *)data->prompt_buff.buff, data->buff, data->color, data->indent, data->buff_pos );
s_write( &data->screen,
(wchar_t *)data->prompt_buff.buff,
data->buff,
data->color,
data->indent,
data->buff_pos );
}
@ -2249,7 +2254,7 @@ wchar_t *reader_readline()
/*
Allow backslash-escaped newlines
*/
if( data->buff_len && data->buff[data->buff_len-1]==L'\\' )
if( data->buff_pos && data->buff[data->buff_pos-1]==L'\\' )
{
insert_char( '\n' );
break;