mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Allow newlines in fish_prompt, by joining prompt_list with newlines instead of nothing in exec_prompt().
This commit is contained in:
parent
6b8e7b16f6
commit
1157e4d7b2
1 changed files with 4 additions and 0 deletions
4
reader.c
4
reader.c
|
@ -698,6 +698,10 @@ static void exec_prompt()
|
|||
for( i=0; i<al_get_count( &prompt_list); i++ )
|
||||
{
|
||||
sb_append( &data->prompt_buff, (wchar_t *)al_get( &prompt_list, i ) );
|
||||
if (i + 1 < al_get_count( &prompt_list))
|
||||
{
|
||||
sb_append( &data->prompt_buff, L"\n" );
|
||||
}
|
||||
}
|
||||
|
||||
al_foreach( &prompt_list, &free );
|
||||
|
|
Loading…
Reference in a new issue