Ok, so it seems nano can't detect, for some reason, that it's running as root when invoked via "sudoedit".
$ sudo nano foo works as expected $ sudoedit foo doesn't Does anyone have information on how sudoedit is different to sudo? -- Breaks config files by adding hard line breaks https://launchpad.net/bugs/39866 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs