From 1157e4d7b256113c292df0605534d269642eef83 Mon Sep 17 00:00:00 2001 From: Ben Hoskings Date: Wed, 25 Nov 2009 01:12:44 +1100 Subject: [PATCH] Allow newlines in fish_prompt, by joining prompt_list with newlines instead of nothing in exec_prompt(). --- reader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reader.c b/reader.c index 23b5d9d8e..b7792e767 100644 --- a/reader.c +++ b/reader.c @@ -698,6 +698,10 @@ static void exec_prompt() for( i=0; iprompt_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 );