mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
only count the last line of promt when caculate prompt width
This commit is contained in:
parent
04f58b1a31
commit
8910226d2f
1 changed files with 4 additions and 0 deletions
4
screen.c
4
screen.c
|
@ -236,6 +236,10 @@ static int calc_prompt_width( wchar_t *prompt )
|
||||||
{
|
{
|
||||||
res = next_tab_stop( res );
|
res = next_tab_stop( res );
|
||||||
}
|
}
|
||||||
|
else if( prompt[j] == L'\n' )
|
||||||
|
{
|
||||||
|
res = 0;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue