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:
parent
8ee6739ece
commit
bfe684151b
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user