CE edit KB_DELETE the following line
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m2s

This commit is contained in:
2026-03-08 11:55:09 +01:00
parent 0692b030cb
commit 0de0b4c1ae
3 changed files with 26 additions and 2 deletions

View File

@@ -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)];
}