mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix wide character wrapping.
The intention of the block removed appears to be to indent wrapped lines to the column the line started at. What actually happens is that all wrapped lines wrap to column 0. After adding the sticky short prompt feature, the block removed caused a bug with wrapping wide characters in addition to not appearing to change anything else. Wide characters would change between wrapping to column 0 and the column the command started at, depending on what column the wide character was at before wrapping. I am keeping the existing behavior rather than restoring the block's original intention. If the original intention should be restored, it should be on a different branch.
This commit is contained in:
parent
2813dcc6cc
commit
ded64758d5
1 changed files with 0 additions and 4 deletions
|
@ -537,10 +537,6 @@ static void s_desired_append_char(screen_t *s,
|
|||
s->desired.add_line();
|
||||
s->desired.cursor.y++;
|
||||
s->desired.cursor.x=0;
|
||||
for (size_t i=0; i < prompt_width; i++)
|
||||
{
|
||||
s_desired_append_char(s, L' ', 0, indent, prompt_width);
|
||||
}
|
||||
}
|
||||
|
||||
line_t &line = s->desired.line(line_no);
|
||||
|
|
Loading…
Reference in a new issue