From bfe684151b31d458e2611300a8d1af7abbd42415 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 22 Jan 2022 09:55:09 -0700 Subject: [PATCH] canonicalize_pasted_newlines now defaults to CarriageReturn on unix refs: #1575 --- term/src/config.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 } } }