From 04948702e0663e5a39d8d0adfa86f5ae33df2fc6 Mon Sep 17 00:00:00 2001 From: liljencrantz Date: Fri, 3 Aug 2007 08:59:39 +1000 Subject: [PATCH] Add a mino-prompt when the normal prompt is too large to display. The old behaviour was to simply not print any proimpt, but that lead to thinking fish had hanged since there was no prompt at all. darcs-hash:20070802225939-75c98-16623ffd640c6036331844334b0ff6f9f211934d.gz --- screen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/screen.c b/screen.c index c74b68f5e..cde6a1b99 100644 --- a/screen.c +++ b/screen.c @@ -803,12 +803,12 @@ void s_write( screen_t *s, s_check_status( s ); /* - Ignore huge prompts on small screens + Ignore huge prompts on small screens - only print a two character placeholder... */ - if( prompt_width > (screen_width - 8) ) + if( prompt_width > (screen_width/2) ) { - prompt = L""; - prompt_width = 0; + prompt = L"> "; + prompt_width = 2; } /*