erikarvstedt 8ed792b640
std.Progress: fix suffix printing
Previously, `suffix` was copied to `output_buffer` at position
`max_end`, thereby writing into reserved space after `max_end`.
This only worked because `suffix` was not larger than
`bytes_needed_for_esc_codes_at_end` (otherwise there'd be a potential
buffer overrun) and no escape codes at end are actually written.

Since 2d5b2bf1c986d037ef965bf8c9b4d8dfd5967478, escape codes are no
longer written to the end of the buffer. They are now written
exclusively to the front of the buffer.
This allows removing `bytes_needed_for_esc_codes_at_end` and
simplifying the suffix printing logic.

This also fixes the bug that the ellipse suffix was not printed in
Windows terminals because `end.* > max_end` was never true.
2022-02-14 12:14:50 +02:00
..
2022-02-06 22:21:46 -07:00
2022-02-11 22:15:46 +01:00
2022-01-27 19:35:08 +02:00
2022-01-07 00:06:06 -05:00
2022-02-14 12:14:50 +02:00
2021-10-27 16:07:48 -04:00
2022-02-08 10:03:29 +01:00
2022-01-07 00:06:06 -05:00
2022-01-30 21:27:52 +02:00
2022-01-07 00:06:06 -05:00
2022-02-05 16:33:00 +02:00