only count the last line of promt when caculate prompt width
This commit is contained in:
parent
04f58b1a31
commit
8910226d2f
4
screen.c
4
screen.c
@ -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
|
||||
{
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user