fix: clear codacy object injection highs

This commit is contained in:
lucaronin
2026-05-07 20:44:45 +02:00
parent 8d35fbcba3
commit 5965d5f23f
98 changed files with 952 additions and 559 deletions

View File

@@ -14,7 +14,7 @@ export function findNearestTextCursorBlock(
if (blocks.length === 0) return null
const clampedTargetIndex = Math.min(Math.max(targetIndex, 0), blocks.length - 1)
const targetBlock = blocks[clampedTargetIndex]
const targetBlock = blocks.at(clampedTargetIndex)
if (blockSupportsTextCursor(targetBlock)) {
return targetBlock
}