>> Yes, in Vim9 script the index is in characters. In legacy script it is
>> in bytes.
>>
>> The help for this doesn't have it's own tag, I'll add one.
>> You can find it above ":help vim9-gotchas".
>
> I was expecting to find it under `:help vim9-differences`, but either
> I missed the relevant item, or it's not there, in which case it could be
> added there.
Sorry, I read too fast. Maybe, a reference "see also vim9-gotchas" might
be added under vim9-differences, which seems to me the obvious place to
go (and probably easier to search than "gotchas").
Btw, despite the change having caused me some headache debugging one of
my scripts, I think that it makes a lot of sense for a text editor
scripting language to index strings by characters, so I welcome the
change!
Life.