Fix off-by-one error in line number continuation

This commit is contained in:
Ethan P.
2024-02-11 13:49:13 -08:00
parent 5a2a20af42
commit 9d77c1373c
2 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,7 @@ impl Decoration for LineNumberDecoration {
_printer: &InteractivePrinter,
) -> DecorationText {
if continuation {
if line_number > self.cached_wrap_invalid_at {
if line_number >= self.cached_wrap_invalid_at {
let new_width = self.cached_wrap.width + 1;
return DecorationText {
text: self.color.paint(" ".repeat(new_width)).to_string(),