pager history buffer: alloc buffer progressively
Realloc buffer 1MB at a time until the configured size is reached
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ typedef struct {
|
||||
} HistoryBufSegment;
|
||||
|
||||
typedef struct {
|
||||
index_type bufsize;
|
||||
index_type bufsize, maxsz;
|
||||
Py_UCS4 *buffer;
|
||||
index_type start, end;
|
||||
index_type bufend;
|
||||
|
||||
Reference in New Issue
Block a user