This is in the context of the full command line string, so includes word break characters.
Note that some shells can only provide an approximation for character index. Under ZSH for
example, this will always be the character at the start of the current word.