> The first time I accidentally ran "less" on a directory and it piped some version of "ls" into itself, I was mildly annoyed.
% less .
. is a directory
% less imadir
imadir is a directory
My point is, that behavior is a configuration issue on your end, not inherent to the less codebase.