diff --git a/term/src/config.rs b/term/src/config.rs index beb83e661..75b16e579 100644 --- a/term/src/config.rs +++ b/term/src/config.rs @@ -114,7 +114,12 @@ impl Default for NewlineCanon { if cfg!(windows) { Self::CarriageReturnAndLineFeed } else { - Self::None + // For compatibility with the `nano` editor, which unfortunately + // treats \n as a shortcut that justifies text + // , we default to + // \r which is typically fine. + // + Self::CarriageReturn } } }