You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: correct comment range detection in middle chunk extraction
Fix bug where middle chunk comment ranges were not properly detected due to
incorrect byte-to-char cache usage. The extract_comment_ranges function was
being called with an empty cache array instead of the properly constructed
chunk_byte_to_char_cache, causing comment positions to be calculated incorrectly.
This fix ensures comments within middle chunks are properly recognized and
skipped during typing practice.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: tests/integration/languages/snapshots/r#mod__integration__languages__extractor__test_c_complex_algorithm_extraction.snap
"content": " if (result_count > 0) {\n // Calculate average for validation\n int total = 0;\n for (size_t i = 0; i < result_count; i++) {\n total += results[i].value;\n }\n int average = total / (int)result_count;\n\n // Add average as metadata (simplified approach)\n printf(\"Average processed value: %d\\n\", average);\n }",
Copy file name to clipboardExpand all lines: tests/integration/languages/snapshots/r#mod__integration__languages__extractor__test_cpp_complex_algorithm_extraction.snap
"content": " if (processed_count > 0) {\n T total = std::accumulate(results.begin(), results.end(), static_cast<T>(0));\n T average = total / static_cast<T>(results.size());\n\n // Add average to log for analysis\n processing_log.push_back(average);\n }",
0 commit comments