1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

canonicalize_pasted_newlines now defaults to CarriageReturn on unix

refs: #1575
This commit is contained in:
Wez Furlong 2022-01-22 09:55:09 -07:00
parent 8ee6739ece
commit bfe684151b

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
}
}
}