| ... | @@ -669,14 +669,8 @@ fn appendTreeSymbol(symbol: TreeSymbol, buf: []u8, start_i: usize) usize { | ... | @@ -669,14 +669,8 @@ fn appendTreeSymbol(symbol: TreeSymbol, buf: []u8, start_i: usize) usize { |
| 669 | fn clearWrittenWithEscapeCodes() anyerror!void { | 669 | fn clearWrittenWithEscapeCodes() anyerror!void { |
| 670 | if (!global_progress.need_clear) return; | 670 | if (!global_progress.need_clear) return; |
| 671 | | 671 | |
| 672 | var i: usize = 0; | | |
| 673 | const buf = global_progress.draw_buffer; | | |
| 674 | | | |
| 675 | buf[i..][0..clear.len].* = clear.*; | | |
| 676 | i += clear.len; | | |
| 677 | | | |
| 678 | global_progress.need_clear = false; | 672 | global_progress.need_clear = false; |
| 679 | try write(buf[0..i]); | 673 | try write(clear); |
| 680 | } | 674 | } |
| 681 | | 675 | |
| 682 | /// U+25BA or ► | 676 | /// U+25BA or ► |