Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Commit 71eb52f

Browse files
authored
Fix off-by-one in range inclusion (#817)
1 parent a5c1ded commit 71eb52f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/src/util/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ const isInRange = (position: sourcegraph.Position, range: Range): boolean => {
682682
if (position.character < range.column) {
683683
return false
684684
}
685-
if (position.character > range.column + range.length) {
685+
if (position.character >= range.column + range.length) {
686686
return false
687687
}
688688
return true

0 commit comments

Comments
 (0)