mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 07:52:11 +08:00
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:
parent
1e739166b3
commit
e51322ac81
9
reader.c
9
reader.c
@ -630,7 +630,12 @@ void repaint()
|
|||||||
|
|
||||||
parser_test( data->buff, data->indent, 0, 0 );
|
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
|
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' );
|
insert_char( '\n' );
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user