only count the last line of promt when caculate prompt width

This commit is contained in:
Grissiom 2010-09-24 19:01:13 +08:00
parent 04f58b1a31
commit 8910226d2f

View file

@ -236,6 +236,10 @@ static int calc_prompt_width( wchar_t *prompt )
{
res = next_tab_stop( res );
}
else if( prompt[j] == L'\n' )
{
res = 0;
}
else
{
/*