mirror of
https://github.com/1j01/textual-paint.git
synced 2025-01-02 03:48:20 +03:00
Refactor so x is a column index when padding row widths
This commit is contained in:
parent
349887a74e
commit
bb8aff84e9
@ -999,7 +999,7 @@ class AnsiArtDocument:
|
||||
document.height = height
|
||||
# Pad rows to a consistent width.
|
||||
for y in range(document.height):
|
||||
for x in range(document.width - len(document.ch[y])):
|
||||
for x in range(len(document.ch[y]), document.width):
|
||||
document.ch[y].append(' ')
|
||||
document.bg[y].append(default_bg)
|
||||
document.fg[y].append(default_fg)
|
||||
|
Loading…
Reference in New Issue
Block a user