mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 09:03:37 +08: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
|
@ -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 New Issue
Block a user