#1008496 fbless: exits with exception

Package:
fbless
Source:
fbless
Description:
terminal fiction book reader
Submitter:
Alexander Inyukhin
Date:
2022-03-27 20:39:03 UTC
Severity:
normal
#1008496#5
Date:
2022-03-27 20:37:00 UTC
From:
To:
Dear Maintainer,

sometimes fbless throws an exception.
This error is repeatedly occured at the same place inside a file.




Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/fbless_lib/main.py", line 915, in get
    line = par.lines[line_index]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/fbless", line 23, in <module>
    MainWindow().main_loop()
  File "/usr/lib/python3/dist-packages/fbless_lib/main.py", line 88, in __init__
    self.redraw_scr()
  File "/usr/lib/python3/dist-packages/fbless_lib/main.py", line 230, in redraw_scr
    s, type = self.content.get(_par_index, _line_index)
  File "/usr/lib/python3/dist-packages/fbless_lib/main.py", line 919, in get
    return self.get(par_index, line_index)
  File "/usr/lib/python3/dist-packages/fbless_lib/main.py", line 913, in get
    self._split_par(par)
  File "/usr/lib/python3/dist-packages/fbless_lib/main.py", line 1011, in _split_par
    par.split_string()
  File "/usr/lib/python3/dist-packages/fbless_lib/paragraph.py", line 155, in split_string
    offsets.sort()                  # sort by offsets
TypeError: '<' not supported between instances of 'tuple' and 'int'