Line wrap in less not working
I am having a problem with long lines when displayed in less.
It is difficult to describe but I will try...
I have a text file with some lines longer that 80 characters.
If I use less to view this file in an Putty terminal set to
an 80 character width, some of the lines wrap. So far so good.
If I now use the 'j' or 'arrow down' key to scroll down one
line at a time all is ok until I encounter another long line
(longer than 80 characters in my example). What I see is
only the wrapped portion of the line. The first 80 characters
are missing. At this point I can type a ctrl-L to refresh
the window and then the long line is wrapped properly. It is
only when I am scrolling one line at a time that I see this
behavior.
I am not certain that this is a "less problem". However, I only
notice it using less. vi works properly. more works properly.
I suppose it could also be a Putty, bash or environment problem
but I'm not sure.
I've played around with options to less such as -X -r -R without
any luck. The systems I am connecting to area all running CentOS
if that makes any difference.
Does anyone have any ideas?
|