You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently search (/, ?, n and N) only moves to the line of the next match, but if a line is long and doesn't fit the terminal window, less won't scroll to show the position of the match. The Busybox version of less, however, does bring the match into the view even if it's at the end of a very long line.
Here's an example creating a long line of A's that fills the terminal window, then trying to find the B at the end:
(printf 'A%.0s' {1..10000} ; echo B) | less
Searching for "B" (/b) doesn't scroll the line and thus you won't see the matched "B". Pressing G moves to the end and you see it highlighted, but finding the "B" otherwise is very difficult.
This feature would make less work similarly to Busybox's version and would make less more useful for dealing with large data files.
The text was updated successfully, but these errors were encountered:
Currently search (/, ?, n and N) only moves to the line of the next match, but if a line is long and doesn't fit the terminal window, less won't scroll to show the position of the match. The Busybox version of less, however, does bring the match into the view even if it's at the end of a very long line.
Here's an example creating a long line of A's that fills the terminal window, then trying to find the B at the end:
Searching for "B" (
/b
) doesn't scroll the line and thus you won't see the matched "B". PressingG
moves to the end and you see it highlighted, but finding the "B" otherwise is very difficult.This feature would make less work similarly to Busybox's version and would make less more useful for dealing with large data files.
The text was updated successfully, but these errors were encountered: