mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Allow newlines in fish_prompt, by joining prompt_list with newlines instead of nothing in exec_prompt().
This commit is contained in:
committed by
Suraj N. Kurapati
parent
6b8e7b16f6
commit
1157e4d7b2
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 );
|
||||
|
||||
Reference in New Issue
Block a user