mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix for weird issues when a line becomes very long introduced by my warning fixes
This commit is contained in:
parent
4906609dd9
commit
35e9fd1bb0
1 changed files with 2 additions and 2 deletions
|
@ -707,9 +707,9 @@ static void s_update( screen_t *scr, const wchar_t *prompt )
|
||||||
for ( ; j < o_line.size(); j++)
|
for ( ; j < o_line.size(); j++)
|
||||||
{
|
{
|
||||||
int width = fish_wcwidth(o_line.char_at(j));
|
int width = fish_wcwidth(o_line.char_at(j));
|
||||||
skip_remaining -= width;
|
if (skip_remaining <= width)
|
||||||
if (skip_remaining <= 0)
|
|
||||||
break;
|
break;
|
||||||
|
skip_remaining -= width;
|
||||||
current_width += width;
|
current_width += width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue