Ticket #266 (closed defect: fixed)
Backward search doesn't find underlined text
|Reported by:||egmont||Owned by:|
|Branch state:||Votes for changeset:|
If you view a manual page in mc's built-in viewer, and do a backward search (F7) for some underlined (a.k.a. red) text, it won't match.
Reason: backward search is implemented by reversing both the haystack and the needle and then calling normal (forward) search. Underlined text in man pages are implemented by an underscore, followed by a backspace, followed by the desired letter. mc's icase_search() ignores the character before the backspace to be able to search in man pages. Guess what happens however if you reverse an underscored letter in a manpage...
Obvious consequence: As the Summary shows, backward search doesn't find the text you're looking for.
Funny consequence: If you do a backward search for some underscores, it finds every red text.