Major fixes:
- ChunkIterator is now bidirectional - LineIterator is now also bidirectional - Undo/redo history operations - Replace operation - Range based api functions - And more minor bug fixes
This commit is contained in:
+1
-3
@@ -29,12 +29,10 @@ inline int read_file(const char *path, char **text, uint32_t *len) {
|
||||
|
||||
if (read != *len) {
|
||||
free(*text);
|
||||
*text = NULL;
|
||||
*text = nullptr;
|
||||
*len = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
(*text)[*len] = '\0'; // handy if treating it as a C string
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user