\setenv PAGER less in .psqlrc overwrites the environment variable with an undesirable different value (without the -S option).
Either remove it, or change it to \setenv PAGER 'less -S', or create a new environment variable LESS set to -S
Note that even when less is not called with the -S / --chop-long-lines option, hitting the right arrow key will scroll horizontally and temporarily display lines without wrapping them.
\setenv PAGER less
in.psqlrc
overwrites the environment variable with an undesirable different value (without the-S
option).Either remove it, or change it to
\setenv PAGER 'less -S'
, or create a new environment variableLESS
set to-S
Note that even when
less
is not called with the-S / --chop-long-lines
option, hitting the right arrow key will scroll horizontally and temporarily display lines without wrapping them.