-
Notifications
You must be signed in to change notification settings - Fork 36
Description
With the Debian unstable package of alacritty (0.16.1) & kitty (0.45.0), mainline ne (3827b58) doesn't seem to interpret newlines in bracketed paste correctly.
With bracketed-paste enabled, copy-paste more than one line into ne, e.g:
abc123
abc456
Instead of 2 lines, the newline triggers gotoline, and abc456ends up in the line number prompt. Running ne with --no-bpaste means everything works fine. This is not a problem under xterm, there bracketed paste works as expected.
Note that KeyCode for Ctrl-j (i.e. line number) reports 0x0a (i.e. "\n"), which is where the confusion likely comes in.
This isn't just ne, buggy bracketed paste seems to be a common refrain in both Alacritty & Kitty issue trackers, variously blaming applications, tmux, TERM settings & issues closed.
I think the most interesting is this one: kovidgoyal/kitty#994 / https://savannah.gnu.org/bugs/?49176, which resulted in bodging newlines in (non-bracketed) paste to \r before sending on. Both KiTTY and Alacritty do this. I've not investigated why it's not a problem in xterm. Presumably whatever converts to \r happens regardless of paste mode though.
I'm guessing what needs to happen is that the CHAR_CLASS should always be ALPHA when in bracketed paste mode, but I've not tried fixing yet.