Use correct indexing also for cursor-matchingbracket. Fixup for 95d82568d8f9d4ba34eb293b6ce792854a14f110