Commit bebc36a
committed
fix: correct off-by-one indexing error in openFile text pattern search
Address Copilot review comment: when searching for endText pattern,
line_idx is already the correct 1-based index for the lines array,
so accessing lines[line_idx + 1] was incorrect.
Changed to lines[line_idx] to access the current line directly.
Change-Id: I05853ff183ef8f3e5df2863d2184a0cb58cb7e65
Signed-off-by: Thomas Kosiewski <tk@coder.com>1 parent d0f1f73 commit bebc36a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
0 commit comments