Commit 5a47de1
Fix overly broad ".." prefix check in cursor containment
validateCursorContainment and FindCursorSourceFile used
strings.HasPrefix(rel, "..") which rejects valid paths like
"..config/". Use separator-aware check matching isContainedIn.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9ba3e5b commit 5a47de1
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
574 | 576 | | |
575 | 577 | | |
576 | 578 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | | - | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1136 | 1138 | | |
1137 | 1139 | | |
1138 | 1140 | | |
| |||
0 commit comments