* Search for "^$" with regex checked
* no empty line is found
* View a text file using the internal lister
* Search for "^.*$" with regex checked
* repeat the search many times
* empty lines are skipped
It seems like all empty lines are skipped when searching using regex. Maybe this is done because repeatedly searching for "^.*$" would otherwise not continue?
Also I find the difference between repeatedly searching for ".*" and repeatedly searching for "^.*$" not very obvious. I know why it behaves like that, but I think it is not obvious.
I have a suggestion that would fix all above issues. I suggest to not skip empty lines but instead:
- in case of a forward search: before performing the search, check whether the start position for the search is at the end of a line. If that's the case change the start position for the search to the beginning of the next line. (If there is no next line, display the "Not found" message)
- in case of a backward search: before performing the search, check whether the start position for the search is at the beginning of a line. If that's the case change the start position for the search to the end of the previous line. (If there is no previous line, display the "Not found" message)