Exiting a ‘&pattern’ search in less

lesssearch

After using a search in less of the format &pattern, which displays only matching lines, how can I go back to displaying all lines in the file?

Esc doesn't do anything as far as I can tell. Ctrl+c doesn't either. q simply exits less.

Best Answer

Just enter & again with no search term