Pass row/column position to input seek method

This commit is contained in:
Max Brunsfeld 2018-02-14 07:31:49 -08:00
parent 8b70cb85f7
commit facafcd6e4
5 changed files with 10 additions and 10 deletions

View file

@ -20,7 +20,7 @@ static const char *ts_string_input__read(void *payload, uint32_t *bytes_read) {
return input->string + previous_position;
}
static int ts_string_input__seek(void *payload, uint32_t byte) {
static int ts_string_input__seek(void *payload, uint32_t byte, TSPoint _) {
TSStringInput *input = (TSStringInput *)payload;
input->position = byte;
return (byte < input->length);