diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-03-16 19:17:02 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-03-19 18:01:25 +0000 |
| commit | 485c473e76e7b90676a484d0f433d713f0c4c9ce (patch) | |
| tree | fc578e5662135f525650219a720a336de1db5c93 /CHANGELOG.md | |
| parent | csi: add support for DECNKM private mode (diff) | |
selection: don’t translate \r to \n when pasting
In non-bracketed paste mode, we translate \n to \r, and \r\n to
\r. The latter matches XTerm, urxvt, alacritty and kitty. The former
matches alacritty and kitty (xterm and urxvt just blindly replaces all
\n occurrences with \r, meaning \r\n is translated to \r\r.
For some reason, we then unconditionally translated all \r back to \n,
regardless of whether bracketed paste was enabled or not. Unsure
why/where this comes from, but it doesn't match any of the other
terminal emulators I tested.
One example where this caused issues is in older versions of nano (at
least up to 2.9).
Closes #980
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f3baa0ee..0fb7015b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,8 @@ sequences (https://codeberg.org/dnkl/foot/issues/325). * OSC-4 and OSC-11 replies now uses four digits instead of 2 (https://codeberg.org/dnkl/foot/issues/971). +* `\r` is no longer translated to `\n` when pasting clipboard data + (https://codeberg.org/dnkl/foot/issues/980). ### Deprecated |
