Closed ettoredn closed 2 years ago
What version of nano
are you using?
https://github.com/wez/wezterm/issues/998 is a similar sounding issue that suggests that installing a newer version of nano may help.
macOS:
nano --version
GNU nano version 2.0.6 (compiled 14:41:52, Apr 17 2020)
Email: nano@nano-editor.org Web: http://www.nano-editor.org/
Compiled options: --disable-nls --enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8
remote Debian server via SSH:
nano --version
GNU nano, version 3.2
(C) 1999-2011, 2013-2018 Free Software Foundation, Inc.
(C) 2014-2018 the contributors to nano
Email: nano@nano-editor.org Web: https://nano-editor.org/
Compiled options: --disable-libmagic --disable-wrapping-as-root --enable-utf8
alpine:latest using local Docker on macOS does not manifest any issue:
docker run -it alpine:latest
/ # nano --version
GNU nano, version 5.9
(C) 1999-2011, 2013-2021 Free Software Foundation, Inc.
(C) 2014-2021 the contributors to nano
Compiled options: --disable-libmagic --disable-nls --enable-utf8
Even if it works with the latest version of nano, I believe this should be fixed somehow because most people cannot easily update the servers they are managing (think old distros/setups). Before the latest update everything was working fine.
Even if it works with the latest version of nano, I believe this should be fixed somehow because most people cannot easily update the servers they are managing (think old distros/setups).
That's fair: I've pushed some changes that allow for canonicalizing to CR characters and made that default behavior on non-Windows platforms. I'll need to evaluate this on Windows as well before figuring out what to do about that.
https://wezfurlong.org/wezterm/config/lua/config/canonicalize_pasted_newlines.html shows the available options in case the default still isn't quite right.
Before the latest update everything was working fine.
The canonicalization behavior hasn't changed in a very long time, so I wonder if there is an additional issue we need to run down here?
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Upon further tests it appears to manifest only inside nano.
Version:
20220101-133340-7edc5b5a
Shell: zsh with latest oh-my-zsh and powerlevel10khttps://user-images.githubusercontent.com/739903/150602570-2ebf7fde-0305-4c25-8fb0-425a4a60813b.mp4
Originally posted by @ettoredn in https://github.com/wez/wezterm/issues/1296#issuecomment-1018878626