mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43: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++)
|
||||
{
|
||||
int width = fish_wcwidth(o_line.char_at(j));
|
||||
skip_remaining -= width;
|
||||
if (skip_remaining <= 0)
|
||||
if (skip_remaining <= width)
|
||||
break;
|
||||
skip_remaining -= width;
|
||||
current_width += width;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue