Fix error in more edge calculation when using client with SCREENWIDTH=0. Resolves #1257.
This commit is contained in:
parent
6f30ab09f5
commit
21e72e416c
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ class EvMore(object):
|
||||||
lines.append(line)
|
lines.append(line)
|
||||||
|
|
||||||
# always limit number of chars to 10 000 per page
|
# always limit number of chars to 10 000 per page
|
||||||
height = min(10000 // width, height)
|
height = min(10000 // max(1, width), height)
|
||||||
|
|
||||||
self._pages = ["\n".join(lines[i:i+height]) for i in range(0, len(lines), height)]
|
self._pages = ["\n".join(lines[i:i+height]) for i in range(0, len(lines), height)]
|
||||||
self._npages = len(self._pages)
|
self._npages = len(self._pages)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue