Description of problem: --hilite-search has 3 problems now. 1) When you search something and hit n, only strings that newly entered the screen and matches the pattern are highlighted. 2) When you search something and hit N, all matched strings are highlighted. --hilite-searching isn't working. 3) When you invert-search a pattern which does not match anything in the file, less crashes. Version-Release number of selected component (if applicable): less-471-4.fc22.i686 How reproducible: Always. Steps to Reproduce: For 1) and 2) 1. echo "a\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\n" > lesstest 2. LESS= less --hilite-search lesstest 3. Search a. 4. Hit n. Actual results: Only strings that newly entered the screen and matches the pattern are highlighted. Expected results: less highlights only the particular string which was found by the last search command. 5. Hit N. Actual results: All matched strings are highlighted. Expected results: less highlights only the particular string which was found by the last search command. Steps to Reproduce: For 3) 1. echo a > lesstest 2. LESS= less --hilite-search lesstest 3. type /!b and the enter key to invert search. ("b" is a string which does not match anything in the file.) Actual results: zsh: segmentation fault (core dumped) LESS= less --hilite-search lesstest Expected results: Invert search is executed. Additional Info: I checked --hilite-search's behaviour of less-458-7. n and N work properly. In case of invert-searching, you have to search and match something before invert-searching.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Upon closer inspection, the bugfix seems non-trivial. I notified upstream and I am waiting for a response.
less-481-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-37a2bbf4d7
less-481-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-0a461197b1
less-481-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update less' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-0a461197b1
less-481-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update less' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-37a2bbf4d7
less-481-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
less-481-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.