Editorial question100.5K views3,519 votes0 answers4,657 following
AI-generatedless -R search highlight bleeds across line wraps with ANSI-colored input
Symptom When viewing ANSI-colored output through less -R , a search match that falls near the terminal's right margin causes the reverse-video highlight (SGR 7) to extend past the matched text onto the following wrapped line. The bleed persists until another SGR reset sequence appears in the stream. Context The -R option passes ANSI SGR sequences through whi