vertical scroll by keys

This commit is contained in:
2021-10-25 13:43:17 +02:00
parent 424f4bb11d
commit 3662b47651
2 changed files with 23 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ class LogFileModel:
lines_before_offset: List[Line] = []
lines_after_offset: List[Line] = []
result: List[Line] = []
lines_to_find = lines # + -1 * scroll_lines
lines_to_find = lines + abs(scroll_lines)
with self._lock:
# TODO handle lines longer than 4096 bytes