aboutsummaryrefslogtreecommitdiffhomepage
path: root/screen.c
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-08-03 08:59:39 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-08-03 08:59:39 +1000
commit04948702e0663e5a39d8d0adfa86f5ae33df2fc6 (patch)
treed7273462c24e74b41e33bebb1c39f3cc7bddc8f2 /screen.c
parent20526687b24a6fe07baa3602a4d88841d4716a55 (diff)
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
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/screen.c b/screen.c
index c74b68f5..cde6a1b9 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;
}
/*