Using X+1 makes sense when X is the last control character in a contiguous group, but "┘" is not, so we can use the first non-control character