CE edit KB_DELETE the following line
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m2s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m2s
This commit is contained in:
@@ -112,3 +112,10 @@ char* gapbuffer_string_at (gb_malloc_func_t mallocfn, void* ctx, struct gapbuffe
|
||||
res[written] = '\0';
|
||||
return res;
|
||||
}
|
||||
|
||||
char gapbuffer_at (struct gapbuffer* gb, size_t index) {
|
||||
if (index < gb->gap_start)
|
||||
return gb->buffer[index];
|
||||
else
|
||||
return gb->buffer[index + (gb->gap_end - gb->gap_start)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user