mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
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:
parent
20526687b2
commit
04948702e0
1 changed files with 4 additions and 4 deletions
8
screen.c
8
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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue