canonicalize_pasted_newlines now defaults to CarriageReturn on unix

refs: #1575
This commit is contained in:
Wez Furlong committed 2022-01-22 09:55:09 -07:00
1 parent 8ee6739ece
commit bfe684151b
1 file changed
+6 -1
+6 -1
View File
@@ -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
// <https://savannah.gnu.org/bugs/?49176>, we default to
// \r which is typically fine.
// <https://github.com/wez/wezterm/issues/1575>
Self::CarriageReturn
}
}
}