Commit 10fc1ef
committed
Fix search_replace_preview line indexing and update test cases to 1-indexed
- Fix search_replace_preview to convert 1-indexed line numbers to 0-indexed
array indices (line_num - 1), consistent with replace_in_file_internal
- Update 4 test cases from line: 0 to line: 1 to match 1-indexed convention
used by search results and the backend conversion logic1 parent 20d0ece commit 10fc1ef
1 file changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
800 | | - | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
801 | 806 | | |
802 | 807 | | |
803 | 808 | | |
804 | | - | |
| 809 | + | |
805 | 810 | | |
806 | 811 | | |
807 | 812 | | |
| |||
821 | 826 | | |
822 | 827 | | |
823 | 828 | | |
824 | | - | |
| 829 | + | |
825 | 830 | | |
826 | 831 | | |
827 | 832 | | |
| |||
1212 | 1217 | | |
1213 | 1218 | | |
1214 | 1219 | | |
1215 | | - | |
| 1220 | + | |
1216 | 1221 | | |
1217 | 1222 | | |
1218 | 1223 | | |
| |||
1239 | 1244 | | |
1240 | 1245 | | |
1241 | 1246 | | |
1242 | | - | |
| 1247 | + | |
1243 | 1248 | | |
1244 | 1249 | | |
1245 | 1250 | | |
| |||
1266 | 1271 | | |
1267 | 1272 | | |
1268 | 1273 | | |
1269 | | - | |
| 1274 | + | |
1270 | 1275 | | |
1271 | 1276 | | |
1272 | 1277 | | |
| |||
1334 | 1339 | | |
1335 | 1340 | | |
1336 | 1341 | | |
1337 | | - | |
| 1342 | + | |
1338 | 1343 | | |
1339 | 1344 | | |
1340 | 1345 | | |
| |||
0 commit comments