When I ask for man nano, I get a man page for pico, which offers "-w Disable word wrap (thus allow editing of long lines)."
So when I run nano in MacOS 13.2.1, it really runs pico (which seems to have the opposite behavior to proper nano in this regard), even though:
% which nano
/usr/bin/nano
@peterdrake @jupiter Since I don't know much about Macs, the only other thing I can suggest would be to check Homebrew to see if there's anything they can help with.
Actually, I just checked. There is a listing for nano, but I don't have any idea what to do from there.
https://formulae.brew.sh/formula/nano
I hope this helps in some manner.
@peterdrake @jupiter Have you tried "man pico" to see if there's a man page for it? Pico was the basis for Nano.
https://nano-editor.org/dist/latest/faq.html#1.1