Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
pg83 committed Dec 27, 2021
1 parent dcac551 commit 5405a72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ted
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,9 @@ class LineNo:

@property
def width(self):
return len(str(self.f))
f = self.f

return len(str(f)) if f else 0

def pixels(self, attrs):
f = gray8(8)
Expand All @@ -1739,7 +1741,7 @@ class LineNo:
w = self.width

for y, s in enumerate(range(self.s, self.f)):
l = str(s)
l = str(s + 1)
dx = w - len(l)

for x, c in enumerate(l):
Expand Down

0 comments on commit 5405a72

Please sign in to comment.