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
This commit is contained in:
liljencrantz 2007-08-03 08:59:39 +10:00
parent 20526687b2
commit 04948702e0

View file

@ -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;
}
/*