mirror of
https://github.com/rtk-ai/rtk.git
synced 2026-09-19 07:33:17 +08:00
34a0f0e5c0
Native grep only prints -- between non-adjacent match blocks when -A/-B/-C context is requested. The grouped output path was inserting -- on any line-number gap unconditionally, so `rtk grep -rn todo` invented separators between every match that grep never emits. Gate the insertion on has_context_flag() which checks for -A/-B/-C and their long-form equivalents.