fix the bug of buffer read

This commit is contained in:
lionsoul2014 2025-10-30 23:17:43 +08:00
parent 42b9cebb9d
commit 3ea717043c
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class Searcher(object):
def read(self, offset: int, length: int):
# check the content buffer first
if self.c_buffer != None:
return self.c_buffer[offset, offset + length]
return self.c_buffer[offset:offset+length]
# load the buffer from file
self.__handle.seek(offset)